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

Generic interface for arbitrary token handling

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • client
    • None

    Description

      ctubbsii, kturner and I hashed out details for best approach for generic tokens which should work both for our API and the proxy.

      1. Client requests the Authenticator class name
      2. Client creates instance of Authenticator, calls login(Properties)
      3. Properties are used to create the appropriate Token, which implements Writable, and return it to user.
      4. Client uses principal + Token with getConnector call
      5. Token is immediately serialized to be used within client api and packaged into a Credential object
      6. Credential gets sent to server via thrift
      7. Principal is checked, if !SYSTEM treated as a PasswordToken, otherwise deserialized as a class defined by the Authenticator (Writable's readFields method called on said class)
      8. Token us then passed through the SecurityOperations impl as well as the authenticator api.

      This allows the authenticator API to use their requested tokens without confusion/code injection issues with deserialization happening for unknown token classes.

      The exact same process for token creation can also be used by the Proxy, with a Map of properties being passed it to create a token on the proxy.

      For backward support, the ZKAuthenticator will expect a PasswordToken, which is simply a byte array.

      Attachments

        Issue Links

          Activity

            People

              vines John Vines
              vines John Vines
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: