WebServiceContext.getUserPrincipal() is null when user authenticated via WS-Security (e.g. UsernameToken)
Issue
- Using WS-Security, e.g. UsernameToken
- Injecting
WebServiceContextinto endpoint WebServiceContext.getUserPrincipal()isnull, even after successful authentication via WS-Security.- How can I get the authenticated user principal?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
