Skip to content

Commit ae5df14

Browse files
committed
make external default
1 parent 1498a3b commit ae5df14

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

backend/options/oidc.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ type OIDC struct {
4848
}
4949

5050
func NewOIDC() *OIDC {
51-
return &OIDC{}
51+
return &OIDC{
52+
Type: string(OIDCTypeExternal),
53+
}
5254
}
5355

5456
func (options *OIDC) AddFlags(fs *pflag.FlagSet) {
@@ -62,7 +64,7 @@ func (options *OIDC) AddFlags(fs *pflag.FlagSet) {
6264
}
6365

6466
func (options *OIDC) Complete(listener net.Listener) error {
65-
if options.Type == "" || options.Type == string(OIDCTypeEmbedded) {
67+
if options.Type == string(OIDCTypeEmbedded) {
6668
oidcServer, err := oidc.New(options.CAFile, listener, options.IssuerURL)
6769
if err != nil {
6870
return err

0 commit comments

Comments
 (0)