It should contain the subject from the SAML Token. What does your configuration for the service look like? And what version of CXF are you using?
Colm. On Fri, Mar 14, 2014 at 3:42 PM, bob45 <[email protected]> wrote: > Hi, > > I have a web service that receives a SAML Token issued by an STS. > The web service has the property: > > @Resource > WebServiceContext context; > > When the web service is called with a valid SAML token, the service > operation is executed and the context is set. But > context.getUserPrincipal() > returns null. > I expected it to contain the subject from the SAML Token. > > Am I wrong or do I have to do something special to to get the principal? > > > > -- > View this message in context: > http://cxf.547215.n5.nabble.com/WebServiceContext-always-null-for-SAML-tp5741327.html > Sent from the cxf-user mailing list archive at Nabble.com. > -- Colm O hEigeartaigh Talend Community Coder http://coders.talend.com
