fix: Always request oidc roles from token

Entire-Checkpoint: bfdbffd7aae0
This commit is contained in:
2026-04-01 12:36:37 +02:00
parent 84fe61b3e0
commit 31a8a11f1b

View File

@@ -79,7 +79,7 @@ func NewOIDC(a *Authentication) *OIDC {
ClientID: clientID, ClientID: clientID,
ClientSecret: clientSecret, ClientSecret: clientSecret,
Endpoint: provider.Endpoint(), Endpoint: provider.Endpoint(),
Scopes: []string{oidc.ScopeOpenID, "profile"}, Scopes: []string{oidc.ScopeOpenID, "profile", "roles"},
} }
oa := &OIDC{provider: provider, client: client, clientID: clientID, authentication: a} oa := &OIDC{provider: provider, client: client, clientID: clientID, authentication: a}