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

XMLWordPrintable

    • Hide

      See attachement.

      Show
      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. request.xml
          0.9 kB
          Yue Ni

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

                Created:
                Updated:
                Resolved: