Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-667

Accessing userPrincipal from Session

XMLWordPrintable

      I'm securing my WebSocket API with a @WebFilter which authenticate the HTTP request and retrieve the userPrincipal from a datasource, then wrap the request in a HttpServletRequestWrapper which would return the authenticated user and resolve its roles correctly.

      I can access that through getUserPrincipal() from the HandshakeRequest in a custom configurator, but Session.getUserPrincipal() always returns null, as if Session was ignoring the wrapped request.

              sdouglas1@redhat.com Stuart Douglas (Inactive)
              heruan-1 Giovanni Lovato (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: