mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
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:
@ -332,16 +332,16 @@ func main() {
|
||||
gitlabAuthed.Store(true)
|
||||
}()
|
||||
return cliui.GitAuth(inv.Context(), inv.Stdout, cliui.GitAuthOptions{
|
||||
Fetch: func(ctx context.Context) ([]codersdk.TemplateVersionGitAuth, error) {
|
||||
Fetch: func(ctx context.Context) ([]codersdk.TemplateVersionExternalAuth, error) {
|
||||
count.Add(1)
|
||||
return []codersdk.TemplateVersionGitAuth{{
|
||||
return []codersdk.TemplateVersionExternalAuth{{
|
||||
ID: "github",
|
||||
Type: codersdk.GitProviderGitHub,
|
||||
Type: codersdk.ExternalAuthProviderGitHub,
|
||||
Authenticated: githubAuthed.Load(),
|
||||
AuthenticateURL: "https://example.com/gitauth/github?redirect=" + url.QueryEscape("/gitauth?notify"),
|
||||
}, {
|
||||
ID: "gitlab",
|
||||
Type: codersdk.GitProviderGitLab,
|
||||
Type: codersdk.ExternalAuthProviderGitLab,
|
||||
Authenticated: gitlabAuthed.Load(),
|
||||
AuthenticateURL: "https://example.com/gitauth/gitlab?redirect=" + url.QueryEscape("/gitauth?notify"),
|
||||
}}, nil
|
||||
|
Reference in New Issue
Block a user