Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Authentication
    • None

    Description

      Apart from the constant AuthConstants.AUTH_REQUIREMENTS there is no public API available that allowed applications to change the list of authentication requirement entries.

      Instead, applications need to know and rely on implementation details, which not only includes registering services with the AuthConstants.AUTH_REQUIREMENTS property included but also know about the required format of the property, which from my point of view should be and remain an implementation detail of org.apache.sling.auth.core.impl.SlingAuthenticator, which IMO should not be considered public API.

      To me it would feel more natural if there existed a AuthenticationRequirement interface defining methods to extend/update/clear the auth-requirements bound to a particular service reference and having org.apache.sling.auth.core.impl.SlingAuthenticator implementing that interface.

      Doing so, might also be beneficial from a performance/scalability POV but I would like to cover that in a separate sub-task.

      Proposal for this sub-tasks will follow as I am moving forward.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              angela Angela Schreiber
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: