Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5448

AuthenticationInfoPostProcessor javadoc misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Auth Core 1.3.12
    • Auth Core 1.5.0
    • Authentication
    • None

    Description

      Currently, the AuthenticationInfoPostProcessor javadoc says:

      Service interface which allows bundles to modify the AuthenticationInfo object after authentication has been performed.

      But that's pretty misleading, as "after authentication" actually means "one AuthenticationHandler has returned an AuthenticationInfo" object, but does not include the resource provider creations (e.g. JCR repository login), which are often understood as part of authentication too.

      I suggest this instead:

      Service interface which allows bundles to modify the AuthenticationInfo object right after one authentication handler has returned it from extractCredentials() or for an anonymous AuthenticationInfo. It is called before the resource resolver is created and any authentication in the resource providers (such as JCR repository login) happens.

      As such it is useful to intercept responses from other AuthenticationHandlers and access or modify the AuthenticationInfo before they are actually used to create the resource resolver.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            alexander.klimetschek Alexander Klimetschek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: