[ 
https://issues.apache.org/jira/browse/CXF-3635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060661#comment-13060661
 ] 

Tom Schneider commented on CXF-3635:
------------------------------------

Here's a quick snippet on how to configure this code:

    Client client = ClientProxy.getClient(port);
    Bus bus = ((EndpointImpl) client.getEndpoint()).getBus();
    PolicyInterceptorProviderRegistry pipr = bus
    .getExtension(PolicyInterceptorProviderRegistry.class);
    AssertionBuilderRegistry reg = 
bus.getExtension(AssertionBuilderRegistry.class);
    client.getEndpoint().getEndpointInfo().setProperty("spnego.username", 
<username>);
    client.getEndpoint().getEndpointInfo().setProperty("spnego.password", 
<password>);
    client.getEndpoint().getEndpointInfo().setProperty("spnego.spn", 
<kerberos-spn>);
    client.getEndpoint().getEndpointInfo().setProperty("spnego.jass.client", 
<jass-clientname>);
    reg.register(new SpnegoContextTokenBuilder());
    pipr.register(new SpnegoContextTokenInterceptorProvider());


> WS-Trust SPNego (WCF message level spnego)
> ------------------------------------------
>
>                 Key: CXF-3635
>                 URL: https://issues.apache.org/jira/browse/CXF-3635
>             Project: CXF
>          Issue Type: New Feature
>          Components: WS-* Components
>    Affects Versions: 2.3.5
>            Reporter: Tom Schneider
>         Attachments: cxf-wstrust-spnego.zip
>
>
> We have spent time implementing SPNego over WS-Trust support for CXF and wish 
> to submit it for possible inclusion in CXF itself.  (Or at least as an 
> example for others to follow)  This was implemented so we could use the 
> webservice of MS CRM 2011 when configured for 'on-premise' security, although 
> I think WCF 4.0 uses this type of security by default if you explicitly 
> change it.  So I'm sure this functionality would be useful to others.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to