ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 柳幸楠 <>
Subject About SAML 2 handling in version wss4j 1.6.19
Date Wed, 23 Mar 2016 13:15:08 GMT

Currently I'm working on creating an STS using CXF 2.7.18 and wss4j 1.6.19.
What I want is the STS could be able to receive a SAML token and send a
JwtToken back as a RSTR.

I've succeeded create a JwtTokenProvider and make the flow work when I use
SAML 1.0/1.1 from MicroSoft ADFS, however, it does not work when using SAML
2. Then I found a defect talking
about this issue. And SAML 2 works fine when I upgrade CXF2.7.18 to latest
CXF3.1.4, which is using wss4j-ws-security-common 2.1.4.

However I *cannot *upgrade because I'm using Spring Security SAML to achive
another SAML flow, and it is using OpenSAML2.6 which will cause class
collision with OpenSAML 3( which the latest wss4j is using).

As Colm mentioned in that issue, the fix was not merged into the 1.6.X
branch, the users would better extend the processor and set in WSSConfig.
However, in my STS code, I did not config any InInterceptor, it seems this
interceptor is automatially created based on the WS-Policy.

So I want to know:
1. Is there any way to use openSAML 2 & 3 at the same time?  (So that I can
directly use the latest CXF & wss4j, I tried but failed..)
2. Is there any plan to release a new patch version based on 1.6.X
containing the fix the WSS-519 issue?
3. Based on wss4j 1.6.19, how can I configure the CXF spring files to use a
customized Processor? is it a must to configure an Interceptor? Any
guidelines would be helpful to me.
4. Like the last comment from Viliam Repan in WSS-519, seems in some case,
the "EncryptedKeyProcessor" is created on demand, will the solution in 3
failed in such cases?

I'm new to WS-Trust, actually new to SOAP based WebService... Hope I have
expressed myself and you could have time to answer the questions.

Thanks in advance!

Here's the sample SAML 2 assertion:

<soap:Envelope xmlns:soap="">
<wsse:Security soap:mustUnderstand="1"
xmlns="urn:oasis:names:tc:SAML:2.0:assertion"><xenc:EncryptedData Type="" xmlns:xenc="">
                     <xenc:EncryptionMethod Algorithm=""/>
                     <KeyInfo xmlns="">
                        <e:EncryptedKey xmlns:e="">
                           <e:EncryptionMethod Algorithm="">
                              <DigestMethod Algorithm=""/>
                              <ds:X509Data xmlns:ds="">
OU=R&amp;D, O=RM5 Software Oy, L=Helsinki, S=Uusimaa,

<wsp:AppliesTo xmlns:wsp="">
<wsa:EndpointReference xmlns:wsa="">

*Best Regards!*

Liu Xingnan

View raw message