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

Pre-Authenticated login does not propagate principals in subject to AuthInfo class.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 0.15
    • None
    • security
    • None

    Description

      Example:

      systemSession = Subject.doAs(SystemSubject.INSTANCE, new PrivilegedExceptionAction<ContentSession>() {
          @Override
          public ContentSession run() throws LoginException, NoSuchWorkspaceException {
              return repository.login(null, null);
          }
      });
      

      Produces a session with no permissions.

      I think there are 2 issues:

      1. Pre-Authenticated logins do not set an AuthInfo to the public credentials of the Subject.
      2. the AbstractAccessControlManager uses the AuthInfo.getPrincipals() to retrieve them. IMO, the principals should always match those of the subject and be retrieved from there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            tripod Tobias Bocanegra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: