-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: validate and persist OAuth2 authorization scope #28045
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
Closed
Closed
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7efa327
feat(coderd): add oauth2 scope columns and single-use delete queries
BobbyHo 50f3466
fix(coderd): make oauth2 grant scope explicit and non-nullable
BobbyHo 6f5e057
refactor(coderd/database): return the deleted row from single-use del…
BobbyHo e3ca40d
fix(coderd/database/migrations): renumber scope columns migration to …
BobbyHo 5ca9beb
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470
BobbyHo 3375487
fix(coderd): set scope on oauth2 test inserts
BobbyHo 08f2c9a
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470
BobbyHo d12c47c
feat: validate and persist OAuth2 authorization scope
BobbyHo e98cac8
Merge remote-tracking branch 'origin/coder-oauth2-scope-enforcement-p…
BobbyHo c15059f
fix(coderd): canonicalize and deduplicate negotiated OAuth2 scope
BobbyHo 852d983
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470
BobbyHo ab78087
docs(coderd): correct OAuth2 authorize scope docs and comments
BobbyHo bfc9fd0
refactor(coderd): inline oauth2 unrestricted scope constant
BobbyHo a95174e
Merge branch 'coder-oauth2-scope-enforcement-plat-470' of https://git…
BobbyHo 5df995e
refactor(coderd/database): remove unused single-use delete queries
BobbyHo 02076e1
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470
BobbyHo c676fdc
Merge remote-tracking branch 'origin/coder-oauth2-scope-enforcement-p…
BobbyHo a290850
fix(coderd/oauth2provider): clarify scope rejection errors
BobbyHo 339714c
fix(coderd/oauth2provider): redirect invalid_scope to the client
BobbyHo 32275ac
feat(coderd): check scope requests by permission coverage
BobbyHo bcd9e9f
feat: state the negotiated scope on the OAuth2 consent page
BobbyHo 402161b
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470-phra…
BobbyHo 1710f2c
fix: correct scope docs, error text, and two coverage edge cases
BobbyHo 85565b1
refactor(coderd/oauth2provider): reuse slice.Unique and drop a subsum…
BobbyHo a1a47cc
docs(coderd/oauth2provider): remove SCOPES.md from this change
BobbyHo ab90213
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470-phra…
BobbyHo 7f84436
Merge branch 'main' into coder-oauth2-scope-enforcement-plat-470-phra…
BobbyHo 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.