mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
Support SPN in groups claim (#2474)
This commit is contained in:
parent
8cd62d4d4a
commit
ddea9c6699
|
@ -2472,7 +2472,14 @@ fn extra_claims_for_account(
|
|||
if scopes.contains(&"groups".to_string()) {
|
||||
extra_claims.insert(
|
||||
"groups".to_string(),
|
||||
account.groups.iter().map(|x| x.to_proto().uuid).collect(),
|
||||
account
|
||||
.groups
|
||||
.iter()
|
||||
.flat_map(|x| {
|
||||
let proto_group = x.to_proto();
|
||||
[proto_group.spn, proto_group.uuid]
|
||||
})
|
||||
.collect(),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue