-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support hmac_secret rotation in email_base feature
This supports the previous secret when validing email tokens. In terms of rotation time, that depends on the longest validity time you want to support for any feature using the email_base feature (email_auth, lockout, reset_password, verify_account, verify_login_change). The default validity for each of those features except verify_account is 1 day. verify_account has no deadline. However, if the verify account link has expired, the user can request that the email be resent, and the resent email will have the link with the new hmac.
- Loading branch information
1 parent
a474d2d
commit e404896
Showing
3 changed files
with
24 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters