-
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.
feat(GraphQL): Allow standard claims into auth variables (#7381)
This PR adds support for adding `standard claims` of a `jwt` token in the `Auth Variables`. For eg, if the token contains claims given below and the namespace given in the authorization header is `https://xyz.io/jwt/claims`: ``` { "https://xyz.io/jwt/claims": [ .... ], "ROLE": "ADMIN", "USERROLE": "user1", "email": "random@example.com", "email_verified": true, "sub": "1234567890", "aud": "63do0q16n6ebjgkumu05kkeian", "iat": 1611694692, "exp": 2611730692 } ``` Then the auth variables will also include the rest of the given claims along with the claims provided under `https://xyz.io/jwt/claims`.
- Loading branch information
1 parent
3642fed
commit 23c8796
Showing
3 changed files
with
81 additions
and
28 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