Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new public key token provider (tokens survive password change) #9485

Merged
merged 13 commits into from
Jun 19, 2018

Commits on Jun 18, 2018

  1. Abstract the Provider via a manager

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    3dd5f3d View commit details
    Browse the repository at this point in the history
  2. Add new authtoken v2 columns to the authtoken table

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    8eec3a9 View commit details
    Browse the repository at this point in the history
  3. Initial PKT implementation

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    02e0af1 View commit details
    Browse the repository at this point in the history
  4. Add first tests

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    1f17010 View commit details
    Browse the repository at this point in the history
  5. Just pass uid to the Token stuff

    We don't have user objects in the code everywhere
    
    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    4c0d710 View commit details
    Browse the repository at this point in the history
  6. SetPassword on PublicKeyTokens

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    4bbc21c View commit details
    Browse the repository at this point in the history
  7. Add publickey provider to manager

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    d03d16a View commit details
    Browse the repository at this point in the history
  8. Actually convert the token

    * When getting the token
    * When rotating the token
    
    * Also store the encrypted password as base64 to avoid weird binary
    stuff
    
    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    f168ecf View commit details
    Browse the repository at this point in the history
  9. Generate the new publicKey tokens by default!

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    1999f7c View commit details
    Browse the repository at this point in the history
  10. Add more tests

    * Add a lot of tests
    * Fixes related to those tests
    * Fix tests
    
    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    9e7a95f View commit details
    Browse the repository at this point in the history
  11. Use constant for token version

    And don't set the version in the constructor. That would possible cause
    to many updates.
    
    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    df34571 View commit details
    Browse the repository at this point in the history
  12. Add getProvider helper function

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 18, 2018
    Configuration menu
    Copy the full SHA
    970dea9 View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2018

  1. Comments

    Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
    rullzer committed Jun 19, 2018
    Configuration menu
    Copy the full SHA
    82959ca View commit details
    Browse the repository at this point in the history