Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3096

WebServiceContext#getUserPrincipal() returns null in JBossWS Metro stack when the user is authenticated


    • Hide

      See attachement.

      See attachement.
    • Medium

      I am using JBossWS metro stack to implement Username Token profile authentication for a web service. The authentication will be triggered, and the credential information in SOAP header can be obtained in a custom realm authenticator.

      However, even if the authentication pass and the service operation is performed, the WebServiceContext#getUserPrincipal() always returns null.

      I attached a simple maven 2 project (for service implementation) and a SOAP request (sent with SOAP UI), you can use that to reproduce this issue.

        1. hello-service.zip
          8 kB
        2. hello-service.zip
          8 kB
        3. request.xml
          0.9 kB

            Unassigned Unassigned
            nybon_jira Yue Ni (Inactive)
            0 Vote for this issue
            1 Start watching this issue