Skip to content

feat: add oauth2 token exchange #11778

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 35 commits into from
Feb 20, 2024
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
363005f
Extract auth code helper
code-asher Jan 20, 2024
7000a38
Add static OAuth2 authorize page
code-asher Jan 20, 2024
dc7a246
Add URL query validator
code-asher Jan 20, 2024
48fe155
Allow multiple required query params
code-asher Jan 20, 2024
a4a1dd5
Check that required query params are non-zero
code-asher Jan 23, 2024
586d47d
Refactor test apps
code-asher Jan 20, 2024
d8d2674
Add OAuth2 app filtering by user
code-asher Jan 20, 2024
b23f114
Allow fetching app with query param and form value
code-asher Jan 20, 2024
e6a97bc
Add OAuth2 auth, token, and revoke routes
code-asher Jan 20, 2024
ba95d1b
make gen
code-asher Jan 20, 2024
cbce34a
Delete some oidc helper comments
code-asher Feb 6, 2024
89b281d
s/Required/RequiredNotEmpty
code-asher Feb 6, 2024
6e3940d
No URL for me
code-asher Feb 6, 2024
7b132e4
Move redirect check into query parser
code-asher Feb 7, 2024
035092a
Return err on invalid params
code-asher Feb 7, 2024
3edbc35
Use correct godoc style
code-asher Feb 7, 2024
761c57d
Use userpassword.Hash
code-asher Feb 7, 2024
4769af9
Add comments to code timeout
code-asher Feb 7, 2024
30679d7
Comment on blank origin
code-asher Feb 7, 2024
c06218e
Pass the whole app to db2sdk
code-asher Feb 7, 2024
24e643c
Fix a racy context
code-asher Feb 9, 2024
de037d3
Extract state from authURL
code-asher Feb 9, 2024
19fa030
Implement refresh grant
code-asher Feb 10, 2024
10ab1c9
Fix verbiage in app PUT
code-asher Feb 10, 2024
22ff6c8
Remove extra period
code-asher Feb 10, 2024
cae4e61
Fix test race
code-asher Feb 10, 2024
d854f4d
Apparently browsers do not always set origin
code-asher Feb 13, 2024
9aba07f
Mention redirect URL must be a subset
code-asher Feb 16, 2024
4b975dc
Remove redundant comment
code-asher Feb 16, 2024
5b6a096
Clarify revoke operates on an authorized user
code-asher Feb 16, 2024
f583398
Move cURL comment
code-asher Feb 16, 2024
0161b10
Add error when referer is blank
code-asher Feb 16, 2024
c86e65a
Comment app secret struct
code-asher Feb 16, 2024
2dba243
Use var block
code-asher Feb 16, 2024
cedf7f2
Add error for unhandled grant types
code-asher Feb 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix verbiage in app PUT
  • Loading branch information
code-asher committed Feb 10, 2024
commit 10ab1c90d03c75dc1fcfaef5cc9e8a563386c44c
2 changes: 1 addition & 1 deletion enterprise/coderd/oauth2.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (api *API) putOAuth2ProviderApp(rw http.ResponseWriter, r *http.Request) {
})
if err != nil {
httpapi.Write(ctx, rw, http.StatusInternalServerError, codersdk.Response{
Message: "Internal error creating OAuth2 application.",
Message: "Internal error updating OAuth2 application.",
Detail: err.Error(),
})
return
Expand Down