mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
oidc: use groups claim from ID token if present (#1970)
Signed-off-by: Nandor Kracser <bonifaido@gmail.com>
This commit is contained in:
parent
b36c074a33
commit
45fb938317
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ jwt_payload_email = v {
|
|||
|
||||
jwt_payload_groups = v {
|
||||
v = array.concat(group_ids, get_databroker_group_names(group_ids))
|
||||
v != []
|
||||
} else = v {
|
||||
v = session.claims["groups"]
|
||||
v != null
|
||||
} else = [] {
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue