feat: add endpoints to oauth2 provider applications (#11718)

These will show up when configuring the application along with the
client ID and everything else.  Should make it easier to configure the
application, otherwise you will have to go look up the URLs in the
docs (which are not yet written).

Co-authored-by: Steven Masley <stevenmasley@gmail.com>
This commit is contained in:
Asher
2024-01-22 13:25:25 -09:00
committed by GitHub
parent 8e0a153725
commit 3014777d2a
10 changed files with 187 additions and 32 deletions

23
coderd/apidoc/docs.go generated
View File

@ -9688,6 +9688,21 @@ const docTemplate = `{
}
}
},
"codersdk.OAuth2AppEndpoints": {
"type": "object",
"properties": {
"authorization": {
"type": "string"
},
"device_authorization": {
"description": "DeviceAuth is optional.",
"type": "string"
},
"token": {
"type": "string"
}
}
},
"codersdk.OAuth2Config": {
"type": "object",
"properties": {
@ -9734,6 +9749,14 @@ const docTemplate = `{
"callback_url": {
"type": "string"
},
"endpoints": {
"description": "Endpoints are included in the app response for easier discovery. The OAuth2\nspec does not have a defined place to find these (for comparison, OIDC has\na '/.well-known/openid-configuration' endpoint).",
"allOf": [
{
"$ref": "#/definitions/codersdk.OAuth2AppEndpoints"
}
]
},
"icon": {
"type": "string"
},