-
Notifications
You must be signed in to change notification settings - Fork 137
feat(auth): add role mapping for JWT auth claims #977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+519
−96
Merged
Changes from 51 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
cb3d110
fix(auth): remove jwt data from config and disable by default
jescalada fdaeb6b
feat(auth): add role mapping and assignment on jwt claims
jescalada 5e1440e
test(auth): add test for getJwks helper
jescalada 24cba4d
chore(auth): move jwt util functions into own file for testing
jescalada dad5beb
test(auth): add test for validateJwt helper function
jescalada 407cb85
test(auth): add test for assignRoles helper function
jescalada 420be8d
test(auth): add tests for jwtAuthHandler
jescalada 5bdcd69
chore: add missing jwtConfig parameter (optional)
jescalada 8decdea
Merge remote-tracking branch 'origin/main' into jwt-claims-role-mapping
jescalada aee4b4f
fix: fix failing tests
jescalada 583616a
fix: remove unneeded oidc config params and values
jescalada f31bc6d
fix: fix linter and test issues
jescalada 412b209
fix: e2e test fail due to route refactor (admin -> dashboard)
jescalada 336e51d
fix: e2e test fail (login required)
jescalada 27cfb07
chore: update package.json scripts
jescalada e77aec2
Merge remote-tracking branch 'origin/main' into jwt-claims-role-mapping
jescalada b808b61
chore: improve oidc error handling
jescalada dccb6c4
chore: improve /repo error handling
jescalada 7b8df5f
test: add extra unit test for invalid login
jescalada 3d420a2
docs: add authentication doc page
jescalada 31cba39
docs: fix broken links
jescalada 25f0065
fix: make error handling more descriptive and catch JWT config error
jescalada 65617cd
Merge branch 'main' into jwt-claims-role-mapping
JamieSlome 699f31f
Merge branch 'main' into jwt-claims-role-mapping
JamieSlome 9f554b7
Merge branch 'main' into jwt-claims-role-mapping
jescalada File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.