chore: rename git_auth to external_auth in our schema (#9935)

* chore: rename `git_auth` to `external_auth` in our schema

We're changing Git auth to be external auth. It will support
any OAuth2 or OIDC provider.

To split up the larger change I want to contribute the schema
changes first, and I'll add the feature itself in another PR.

* Fix names

* Fix outdated view

* Rename some additional places

* Fix sort order

* Fix template versions auth route

* Fix types

* Fix dbauthz
This commit is contained in:
Kyle Carberry
2023-09-29 14:13:20 -05:00
committed by GitHub
parent 2b5428e95f
commit 8abca9bea7
67 changed files with 1441 additions and 1363 deletions

38
coderd/apidoc/docs.go generated
View File

@ -2799,7 +2799,7 @@ const docTemplate = `{
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/codersdk.TemplateVersionGitAuth"
"$ref": "#/definitions/codersdk.TemplateVersionExternalAuth"
}
}
}
@ -8186,6 +8186,23 @@ const docTemplate = `{
"ExperimentDeploymentHealthPage"
]
},
"codersdk.ExternalAuthProvider": {
"type": "string",
"enum": [
"azure-devops",
"github",
"gitlab",
"bitbucket",
"openid-connect"
],
"x-enum-varnames": [
"ExternalAuthProviderAzureDevops",
"ExternalAuthProviderGitHub",
"ExternalAuthProviderGitLab",
"ExternalAuthProviderBitBucket",
"ExternalAuthProviderOpenIDConnect"
]
},
"codersdk.Feature": {
"type": "object",
"properties": {
@ -8360,21 +8377,6 @@ const docTemplate = `{
}
}
},
"codersdk.GitProvider": {
"type": "string",
"enum": [
"azure-devops",
"github",
"gitlab",
"bitbucket"
],
"x-enum-varnames": [
"GitProviderAzureDevops",
"GitProviderGitHub",
"GitProviderGitLab",
"GitProviderBitBucket"
]
},
"codersdk.GitSSHKey": {
"type": "object",
"properties": {
@ -10007,7 +10009,7 @@ const docTemplate = `{
}
}
},
"codersdk.TemplateVersionGitAuth": {
"codersdk.TemplateVersionExternalAuth": {
"type": "object",
"properties": {
"authenticate_url": {
@ -10020,7 +10022,7 @@ const docTemplate = `{
"type": "string"
},
"type": {
"$ref": "#/definitions/codersdk.GitProvider"
"$ref": "#/definitions/codersdk.ExternalAuthProvider"
}
}
},