[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-05 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


As I was writing the unit test for the signature validation, I discovered that 
the decrypted XML for a fault isn't valid--the standard DOM parser refuses to 
parse it because one of the namespace prefixes is missing.  So it looks like 
it's an issue on the CRM side.  Once these changes are all checked in, I should 
be good.

> 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
>Assignee: Colm O hEigeartaigh
> Attachments: cxf-3635-pluggable.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-04 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


Colm,
Disregard my last comment, I was confused because you did a checkin and there 
was a patch--I didn't see the attached patch at first.

Yes, this is working for me now.
Tom

> 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
>Assignee: Colm O hEigeartaigh
> Attachments: cxf-3635-pluggable.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-04 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


Colm,
What is the property I need to set?  I looked through the source code of CXF 
and WSS4j, but I couldn't find it.
Thanks,
Tom

> 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
>Assignee: Colm O hEigeartaigh
> Attachments: cxf-3635-pluggable.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-04 Thread Colm O hEigeartaigh (Commented) (JIRA)

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

Colm O hEigeartaigh commented on CXF-3635:
--

Hi Tom,

I've added the ability to make the SpnegoClientAction and SpnegoServiceAction 
interfaces pluggable in WSS4J:

https://issues.apache.org/jira/browse/WSS-332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel#issue-tabs

I've attached a patch to this JIRA to use this functionality in CXF by setting 
a property. If you could review this and test it that would be great.

Colm.


> 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
>Assignee: Colm O hEigeartaigh
> Attachments: cxf-3635-pluggable.patch, 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-03 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


The following also worked for me:
GSSName gssService = gssManager.createName(serviceName, GSSName.NT_USER_NAME);
which makes sense since I'm using an active directory username and password to 
authenticate with Kerberos.  I guess this has to be configurable since we can't 
assume an initial authentication mechanism.  Another option might be to allow a 
user to pass in their own SpnegoClientAction like I've currently doing with the 
NamePasswordCallback. (i.e. the ws-security.callback-handler property)  That 
would provide the most flexibility.

You're too late for the documentation, I already created an example for CRM 
2011 and added a link on the CXF wiki:
http://groovyjava-tom.blogspot.com/2012/01/cxf-and-ms-crm-2011.html

I'll try to put together a unit test for the working and non-working signature 
validation.

> 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
>Assignee: Colm O hEigeartaigh
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-03 Thread Colm O hEigeartaigh (Commented) (JIRA)

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

Colm O hEigeartaigh commented on CXF-3635:
--

Hi Tom,

Great, thanks for trying it out.

> Without this change, I wasn't getting a kerberos ticket back.

Do you have any thoughts on what the correct default should be? If I change it 
to "null" then my local test-case fails. I guess I could make it configurable 
whether it is a host based service or not?

> One other issue I had was that the signature verification is failing when the 
> SOAP response from the server is a 
> fault... I can provide more details if needed.

Yes, please do.

> I also think some good documentation around this would be good.

Once we reach agreement and the test-case is working then I can write something 
up.

Colm.



> 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
>Assignee: Colm O hEigeartaigh
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2012-01-01 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


Everything worked great except for one minor change:

In SpnegoClientAction.java, I had to change:
GSSName gssService = gssManager.createName(serviceName, 
GSSName.NT_HOSTBASED_SERVICE);
To:
GSSName gssService = gssManager.createName(serviceName, null);

Without this change, I wasn't getting a kerberos ticket back.

One other issue I had was that the signature verification is failing when the 
SOAP response from the server is a fault.  (For example, if I ask for a contact 
id that doesn't exist)  We worked around this issue in our code by ignoring 
signature validation failures.  Not sure if this is a CXF or a WCF issue...  I 
can provide more details if needed.

I also think some good documentation around this would be good.  It took me 
quite a while to figure out how to configure this, even with the help of your 
unit tests.  I'd like to put something together before I forget everything. :)

> 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
>Assignee: Colm O hEigeartaigh
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2011-12-31 Thread Tom Schneider (Commented) (JIRA)

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

Tom Schneider commented on CXF-3635:


Great, I'll try to find some time to test this after the new year.  I'll let 
you know if I run into any issues.
Tom

> 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
>Assignee: Colm O hEigeartaigh
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2011-12-20 Thread Colm O hEigeartaigh (Commented) (JIRA)

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

Colm O hEigeartaigh commented on CXF-3635:
--

Hi Tom,

I have finally gotten around to reviewing this patch and have committed a 
fairly extensively modified version of it to trunk (it's a bit more robust and 
shares some code with the SecureConversation code, which does something very 
similar):

http://svn.apache.org/viewvc?view=revision&revision=1221366

I have also added support for the STS side of the SPNEGO exchange (solely for 
testing purposes), and added some system tests based around it. The System 
tests are here:

http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/java/org/apache/cxf/systest/ws/spnego/SpnegoTokenTest.java?view=markup

The client configuration is here:

http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/spnego/client/client.xml?view=markup

The server configuration is here:

http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/spnego/server/server.xml?view=markup

and the WSDL is here:

http://svn.apache.org/viewvc/cxf/trunk/systests/ws-security/src/test/resources/org/apache/cxf/systest/ws/spnego/DoubleItSpnego.wsdl?view=markup

The tests are @Ignored as they rely on a KDC. I have not tested this with WCF, 
only CXF, and so it would be great if you could modify the system test to use 
your test credentials and let me know if it works or not.

Thanks,

Colm.

> 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
>Assignee: Colm O hEigeartaigh
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2011-07-21 Thread Tom Schneider (JIRA)

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

Tom Schneider commented on CXF-3635:


I think there were enough differences that I couldn't get it to work without 
making changes.  It's definitely something I wanted to look into, but it was 
quicker to copy and make changes to the existing STSClient just to get things 
going.  I do think with some refactoring the built-in STSClient could be used 
for these types of requests.

> 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




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2011-07-21 Thread Colm O hEigeartaigh (JIRA)

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

Colm O hEigeartaigh commented on CXF-3635:
--


Hi Tom,

Is it possible to re-use the existing STSClient, instead of duplicating the 
code for the SPNEGO case? What were the reasons behind this?

Thanks,

Colm.

> 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




[jira] [Commented] (CXF-3635) WS-Trust SPNego (WCF message level spnego)

2011-07-06 Thread Tom Schneider (JIRA)

[ 
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", 
);
client.getEndpoint().getEndpointInfo().setProperty("spnego.password", 
);
client.getEndpoint().getEndpointInfo().setProperty("spnego.spn", 
);
client.getEndpoint().getEndpointInfo().setProperty("spnego.jass.client", 
);
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