-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add migration for used on refresh token add refresh token grace period replace migration with ory dev CLI cmd create migrations with command: ory dev pop migration create persistence/sql/migrations/ add_refresh_token_used_flag use existing GetRefreshtTokenSession make FositeStorer include oauth2.TokenRevocationStorage WIP mabye grace period tests use test run instead of named functions add documentation for example config add grace period to internal config prettier --write Update persistence/sql/persister_oauth2.go Co-authored-by: hackerman <[email protected]> move refresh token rotation to proper parent remove unneeded file make encryption of session more obvious rename used to in_grace_period when deactivating a refresh token, in_grace_period should be false add testing the refresh token store when grace period is configured use reflection to control configuring the persister during tests cchore: format fix linting errors fix: add max lifetime fix: move migration to latest remove reflection
- Loading branch information
1 parent
af0c64f
commit b55a602
Showing
9 changed files
with
199 additions
and
8 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
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
1 change: 1 addition & 0 deletions
1
...tence/sql/migrations/20220214121000000000_add_refresh_token_in_grace_period_flag.down.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE hydra_oauth2_refresh DROP COLUMN in_grace_period; |
1 change: 1 addition & 0 deletions
1
...istence/sql/migrations/20220214121000000000_add_refresh_token_in_grace_period_flag.up.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE hydra_oauth2_refresh ADD in_grace_period bool DEFAULT false; |
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