Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5903

Authentication: add extension to retrieve user principal

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.0, 1.8.0
    • Component/s: core
    • Labels:

      Description

      In the current default setup the implementations of the Authentication interface resolve a user for the given login credentials but don't provide means to retrieve the associated principal. Consequently upon LoginModule.commit the user needs to resolved a second time to compute the set of all principals. This could be simplified by using PrincipalProvider.getGroupMembership(Principal) if the users principals was available upon successful call to Authentication.authenticate.

        Attachments

        1. LoginLogoutTest-statusquo-iterations1.txt
          8 kB
          Angela Schreiber
        2. LoginLogoutTest-authenticationWithPrincipal-iterations1.txt
          9 kB
          Angela Schreiber
        3. LoginLogout_token_statusquo.txt
          10 kB
          Angela Schreiber
        4. LoginLogout_token_authenticationWithPrincipal.txt
          10 kB
          Angela Schreiber
        5. LoginLogout_statusquo_170.txt
          9 kB
          Angela Schreiber
        6. LoginLogout_authenticationWithPrincipal.txt
          9 kB
          Angela Schreiber

          Issue Links

            Activity

              People

              • Assignee:
                angela Angela Schreiber
                Reporter:
                angela Angela Schreiber
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: