mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2026-04-01 13:37:30 +02:00
fix: Always request oidc roles from token
Entire-Checkpoint: bfdbffd7aae0
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user