Good afternoon,
We've just recently switched to CXF from Metro and are trying to retrieve a
SAML 1.1 token from the CXF STS. I've managed to retrieve the token using
the PublicKey key type, however when using the SymmetricKey key type, I
receive the following error message:
*org.apache.cxf.ws.security.sts.provider.STSException: The specified request
failed
at
org.apache.cxf.sts.token.provider.DefaultSubjectProvider.getSubject(DefaultSubjectProvider.java:116)*
>From here, I've gathered that the problem is that the encryptionName is
null, however I'm unsure what the encryptionName should be (should it be
"alice" (the username), the encryption certificate alias, something else?)
and also where this property would be propagated from (I currently set the
ws-security.username property to alice on the STSClient and the
SecurityConstants.STS_TOKEN_USERNAME property to the certificate alias on
the STSClient).
Any help would be much appreciated, as I need to be able to create and use
the STSClient instance via code rather than through Spring configuration
files.
Thanks,
Dan.
--
View this message in context:
http://cxf.547215.n5.nabble.com/Unable-to-acquire-token-from-STS-using-SymmetricKey-key-type-tp5053667p5053667.html
Sent from the cxf-user mailing list archive at Nabble.com.