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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: