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

Details

    • Hide

      See attachement.

      Show
      See attachement.
    • Medium

    Description

      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.

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: