Skip to content

Commit eeab33b

Browse files
authored
fix: do not require client_secret for external auth providers (#10016)
Device-based auth does not need a client secret.
1 parent 9aac152 commit eeab33b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

coderd/externalauth/externalauth.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,6 @@ func ConvertConfig(entries []codersdk.ExternalAuthConfig, accessURL *url.URL) ([
383383
if entry.ClientID == "" {
384384
return nil, xerrors.Errorf("%q external auth provider: client_id must be provided", entry.ID)
385385
}
386-
if entry.ClientSecret == "" {
387-
return nil, xerrors.Errorf("%q external auth provider: client_secret must be provided", entry.ID)
388-
}
389386

390387
_, exists := ids[entry.ID]
391388
if exists {

0 commit comments

Comments
 (0)