-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ChaosCenter]: Revoke the token when the user logout (#4085)
* feat: add logout logic Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: add logout api to frontend Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: rename collection Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: add IsRevokedToken logic to graphql-server Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: fix testcases Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: fix minor bugs Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: add logout logic to chaoscenter/auth Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: add logout logic to chaoscenter/web Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: add logout logic to chaoscenter/graphql Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: fix minor bugs Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: fix auth logic Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * feat: update swagger Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: add mutation api Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: rename field Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> * fix: minor Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr> --------- Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
- Loading branch information
1 parent
8e1b602
commit 2d64b25
Showing
42 changed files
with
710 additions
and
223 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
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
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,8 @@ | ||
package entities | ||
|
||
// RevokedToken struct for storing revoked tokens | ||
type RevokedToken struct { | ||
Token string `bson:"token"` | ||
ExpiresAt int64 `bson:"expires_at"` | ||
CreatedAt int64 `bson:"created_at"` | ||
} |
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
Oops, something went wrong.