forked from zalando/skipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resolve Aggregated and Distributed Claims
fixes: zalando#1955 This solution is scoped to Azure behaviour, taking into account the specs from https://openid.net/specs/openid-connect-core-1_0.html#AggregatedDistributedClaims There are some Azure related API calls included but trying to support other providers, which is though unknown at this time. it transforms a distributed claim ```json { "_claim_names": { "groups": "src1" }, "_claim_sources": { "src1": { "endpoint": "https://graph.windows.net/.../getMemberObjects" } } } ``` into a full populated token, which is saved in `statebag` and in the `cookie` for follow up processing ```json { "_claim_names": { "groups": "src1" }, "_claim_sources": { "src1": { "endpoint": "https://graph.windows.net/.../getMemberObjects" } }, "groups": [ "group1", "group2", ... ] } ``` Signed-off-by: Samuel Lang <gh@lang-sam.de>
- Loading branch information
1 parent
2c79795
commit 2dff9a5
Showing
4 changed files
with
288 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.