Skip to content

Commit 54497f4

Browse files
authored
chore: add revocation endpoint to oauth well-known (coder#20561)
Was added to apps endpoints, but not the wider site ones. This is a site wide oauth route
1 parent 9629d87 commit 54497f4

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

coderd/apidoc/docs.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/oauth2provider/metadata.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ func GetAuthorizationServerMetadata(accessURL *url.URL) http.HandlerFunc {
1818
AuthorizationEndpoint: accessURL.JoinPath("/oauth2/authorize").String(),
1919
TokenEndpoint: accessURL.JoinPath("/oauth2/tokens").String(),
2020
RegistrationEndpoint: accessURL.JoinPath("/oauth2/register").String(), // RFC 7591
21+
RevocationEndpoint: accessURL.JoinPath("/oauth2/revoke").String(), // RFC 7009
2122
ResponseTypesSupported: []string{"code"},
2223
GrantTypesSupported: []string{"authorization_code", "refresh_token"},
2324
CodeChallengeMethodsSupported: []string{"S256"},

codersdk/oauth2.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ type OAuth2AuthorizationServerMetadata struct {
262262
AuthorizationEndpoint string `json:"authorization_endpoint"`
263263
TokenEndpoint string `json:"token_endpoint"`
264264
RegistrationEndpoint string `json:"registration_endpoint,omitempty"`
265+
RevocationEndpoint string `json:"revocation_endpoint,omitempty"`
265266
ResponseTypesSupported []string `json:"response_types_supported"`
266267
GrantTypesSupported []string `json:"grant_types_supported"`
267268
CodeChallengeMethodsSupported []string `json:"code_challenge_methods_supported"`

docs/reference/api/enterprise.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/schemas.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

site/src/api/typesGenerated.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)