Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0-milestone1, 2.7.8
-
None
-
Unknown
Description
Using: cxf-tr-ws-security-2.7.8
The code in org.apache.cxf.ws.security.trust.AbstractSTSClient
that handles OnBehalfOf as a string requires a fully compliant XML
stmt like this,
"<wst:OnBehalfOf xmlns:wst=\"http://docs.oasis-open.org/ws-sx/ws-trust/200512\">eve</wst:OnBehalfOf>"
807 if (isString) {
808 final Document doc =
809 StaxUtils.read(new StringReader((String) delegationObject));
The documentation does not make it clear that this is the requirement.
In addition based upon existing uses of SecurityConstants it is expected
that a simple name should be acceptable in the case, for example
SecurityConstants.STS_TOKEN_ON_BEHALF_OF, "bob"