Hi,
I am new user of CXF. I'm using cxf 2.6.0.

I've created a CxfEndpoint with SAML2 wspolicy.
This Endpoint generates a Saml Assertion with a namespace prefix "saml2".
The server side expects the prefix "saml"

How can i change the prefix from "saml2" to "saml" before generating the
assretion signature?

Saml assertion :

<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
soap:mustUnderstand="1">
                        <saml2:Assertion 
xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
ID="_569D3BBFE5A7C5B61E137709250230810" IssueInstant="..." Version="2.0"
xsi:type="saml2:AssertionType">
                                <saml2:Issuer>ISSUER</saml2:Issuer>
                                <ds:Signature 
xmlns:ds="http://www.w3.org/2000/09/xmldsig#";>
                                        ...
                                </ds:Signature>
                                <saml2:Subject>
                                        ...
                                </saml2:Subject>
                                <saml2:Conditions NotBefore="..." 
NotOnOrAfter="..."/>
                                <saml2:AuthnStatement AuthnInstant="...">
                                        <saml2:AuthnContext>
                                                ...
                                        </saml2:AuthnContext>
                                </saml2:AuthnStatement>
                                <saml2:AttributeStatement>
                                        ...
                                </saml2:AttributeStatement>
                        </saml2:Assertion>
                </wsse:Security>



--
View this message in context: 
http://cxf.547215.n5.nabble.com/Customize-Saml-assertion-namespace-prefix-tp5732823.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Reply via email to