Skip to content

Commit d46586b

Browse files
committed
fix: review comments reagrding requested groups
1 parent 0c6d6b7 commit d46586b

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

authenticator/client/oidcClient.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ func GetSettings(conf *DexConfig) (*oidc.Settings, error) {
4242
return nil, err
4343
}
4444

45-
requestedScopes := conf.GetDexScopes()
46-
4745
settings := &oidc.Settings{
4846
URL: conf.Url,
4947
OIDCConfig: oidc.OIDCConfig{CLIClientID: conf.DexClientID,
5048
ClientSecret: conf.DexClientSecret,
5149
Issuer: proxyUrl,
5250
ServerSecret: conf.ServerSecret,
53-
RequestedScopes: requestedScopes,
51+
RequestedScopes: conf.GetDexScopes(),
5452
},
5553
UserSessionDuration: time.Duration(conf.UserSessionDurationSeconds) * time.Second,
5654
AdminPasswordMtime: conf.AdminPasswordMtime,

0 commit comments

Comments
 (0)