Homec4science

Modularize temporary token types

Authored by epriestley <git@epriestley.com> on Mar 16 2016, 13:17.

Description

Modularize temporary token types

Summary:
Ref T10603. For LFS, we need to issue a new type of temporary token.

This makes the temporary token code modular so applications can add new token types without modifying the Auth application.

(I'm moving slowly here because it impacts authentication.)

Test Plan:

  • Used bin/auth recover to get a one-time token from the CLI.
  • Used "Forgot your password?" to get a one-time token from the web UI.
  • Followed the web UI token to initiate a password reset, prompting generation of a password token.
  • Viewed these tokens in the web UI:

{F1176908}

  • Revoked a token.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10603

Differential Revision: https://secure.phabricator.com/D15475

Details

Committed
epriestley <git@epriestley.com>Mar 16 2016, 17:33
Pushed
aubortJan 31 2017, 17:16
Parents
rPH121e68e3adae: Fix an issue with rendering unit messages for diffs with no buildable
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHcf15e0de4386: Modularize temporary token types (authored by epriestley <git@epriestley.com>).Mar 16 2016, 17:33