Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-259 ZKAuthentictor needs to be split up
  3. ACCUMULO-1028

Distinguish the user principal from the authentication token

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • master, tserver
    • None

    Description

      The user principal is something that uniquely identifies a user. An authentication token is the item that authenticates the user principal, may be temporal, and may vary. It is not clear from the implementation of ACCUMULO-259 that these are separate things, and I think it would benefit the API to distinguish them.

      It could also simplify the API, for users transitioning from the old authentication stuff to the new authentication stuff, because there would be a one-to-one mapping with the username/password with which they are familiar:

      public Connector getConnector(String username, byte[] password);
      

      becomes

      public <T extends AuthToken> Connector getConnector(Principal userPrincipal, T authToken);
      

      Attachments

        Activity

          People

            vines John Vines
            ctubbsii Christopher Tubbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: