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

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

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.18.Final
    • Fix Version/s: 2.0.0.Beta1
    • Component/s: Security
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                starksm64 Scott Stark
                Reporter:
                starksm64 Scott Stark
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: