fix: do not require client_secret for external auth providers (#10016)

Device-based auth does not need a client secret.
This commit is contained in:
Kyle Carberry
2023-10-03 14:29:34 +00:00
committed by GitHub
parent 9aac15212b
commit eeab33b1c3
-3
View File
@@ -383,9 +383,6 @@ func ConvertConfig(entries []codersdk.ExternalAuthConfig, accessURL *url.URL) ([
if entry.ClientID == "" {
return nil, xerrors.Errorf("%q external auth provider: client_id must be provided", entry.ID)
}
if entry.ClientSecret == "" {
return nil, xerrors.Errorf("%q external auth provider: client_secret must be provided", entry.ID)
}
_, exists := ids[entry.ID]
if exists {