mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +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()) {
|
if scopes.contains(&"groups".to_string()) {
|
||||||
extra_claims.insert(
|
extra_claims.insert(
|
||||||
"groups".to_string(),
|
"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