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

The DeploymentManagerImpl should pass in the IdentityManager to custom AuthenticationMechanismFactory in deployment

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1
    • 1.4.18.Final
    • Security
    • None

      While io.undertow.servlet.core.DeploymentManagerImpl passes the deployment IdentityManager to the well known auth mechanisms, BASIC, FORM, ... it is not part of the io.undertow.security.api.AuthenticationMechanismFactory interface contract.

      This leaves accessing the IdentityManager from the io.undertow.security.api.SecurityContext#getIdentityManager() method which is deprecated.

      Since it looks like Java 8 is required, this could easily be updated via a new default method in AuthenticationMechanismFactory. I'll create a pull request for an example solution for review.

              starksm64 Scott Stark (Inactive)
              starksm64 Scott Stark (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: