-
Notifications
You must be signed in to change notification settings - Fork 896
feat: add OAuth2 applications #11197
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
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
c7d69e2
Add database tables for OAuth2 applications
code-asher 3c096b2
Add endpoints for managing OAuth2 applications
code-asher 430140e
Add frontend for managing OAuth2 applications
code-asher 35978ed
Add types to oauth2 stories
code-asher 7e2db88
Remove redundant existence checks
code-asher f224ebc
Remove unnecessary function wrappers
code-asher c57b400
Add types to default meta storybook exports
code-asher d2e6d37
Mark secrets array as readonly
code-asher de11363
Replace isUpdating with object
code-asher d767d25
Remove unnecessary undefined on useState
code-asher 9473478
Rename apps to "provider apps"
code-asher 70ffd00
Comment about hashed and display secret
code-asher 8035333
Rename secret ID param
code-asher fd13c02
Move db to sdk conversions to db2sdk.go
code-asher 64ef328
Be more helpful with app and secret mismatches
code-asher 7c7fd7e
Clarify new secret vs secret list
code-asher 765ee0c
Remove invalid JSON from test entities
code-asher 1e08e4d
Remove redundant type
code-asher 3e69495
Refactor mutations
code-asher 41ff886
Merge remote-tracking branch 'github/main' into asher/oauth-provider
code-asher 6e2ec5a
Bump migration number
code-asher 7c3b1b1
make gen
code-asher 7e7cda5
Add dev and entitlement checks to oauth2 provider
code-asher 1be8f15
Move badges underneath header
code-asher 511850b
Improve client ID markup
code-asher e8e8a94
Show a 404 page on /deployment/oauth2-provider/
code-asher c2934fb
Clear full new secret if deleted
code-asher b9a6765
Merge remote-tracking branch 'github/main' into asher/oauth-provider
code-asher d8927ca
Bump migration number
code-asher bd8cab4
Fix undefined error in edit oauth2 stories
code-asher 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
Show a 404 page on /deployment/oauth2-provider/
One day we might have other settings on this page but for now there is nothing to show.
- Loading branch information
commit e8e8a94e69f67db2c6e568b5655da83ed8079289
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing I noticed during testing: I think there should be a redirect or something when the user tries to go go the
deployment/oauth2-provider/
URL pathRight now, it doesn't take you to a completely empty screen, but you only see the navbar and the Deployment options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am hesitant to do that because one day we might have something else on that page (like for example a toggle for whether to enable the oauth2 provider) and I would not want folks getting confused learning they can go to just
/oauth2-provider
to get to the apps, if that makes sense.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That said, seems like it should at least show a proper 404. Mine gives this error:
So I guess it is falling through to some other page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops I was on
dev.coder.com
, yeah you are right it shows a blank page with the deployment sidebar. That is pretty weird. Is there even a way for me to show a 404 here? Maybe a redirect is the only fix...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a route with
NotFoundPage
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah but that is weird too because the sidebar is still there. At least the page says "not found" I guess.