mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Add roles to default oidc scopes
This commit is contained in:
parent
bfb8754c8a
commit
0054609e12
1 changed files with 2 additions and 2 deletions
|
|
@ -159,7 +159,7 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
_POST["oidc_issuer_url"] or "")
|
||||
ntop.setPref("ntopng.prefs.oidc.oidc_scopes",
|
||||
(not isEmptyString(_POST["oidc_scopes"])) and _POST["oidc_scopes"]
|
||||
or "openid profile email")
|
||||
or "openid profile email roles")
|
||||
ntop.setPref("ntopng.prefs.oidc.oidc_group_claim",
|
||||
(not isEmptyString(_POST["oidc_group_claim"])) and _POST["oidc_group_claim"]
|
||||
or "groups")
|
||||
|
|
@ -1360,7 +1360,7 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
prefsInputFieldPrefs(subpage_active.entries["oidc_scopes"].title,
|
||||
subpage_active.entries["oidc_scopes"].description,
|
||||
"ntopng.prefs.oidc", "oidc_scopes",
|
||||
not isEmptyString(oidcPref("oidc_scopes")) and oidcPref("oidc_scopes") or "openid profile email",
|
||||
not isEmptyString(oidcPref("oidc_scopes")) and oidcPref("oidc_scopes") or "openid profile email roles",
|
||||
nil, showElements, true, false, {
|
||||
skip_redis = true,
|
||||
attributes = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue