Last active
September 26, 2017 21:24
-
-
Save RackerWilliams/c6fe437b9ffb6f58f0b1b3c7cc999f74 to your computer and use it in GitHub Desktop.
MK Policy
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
--- | |
mapping: | |
version: RAX-1 | |
rules: | |
- local: | |
user: | |
domain: '1025468' # Can eventually just be {D} | |
email: "{At(urn:oid:1.2.840.113549.1.9.1.1)}" # Can also be {D} | |
expire: "{Pt(/saml2p:Response/saml2:Assertion/saml2:Conditions/@NotOnOrAfter[1])}" # Ditto {D} unless you specifically want it from cond | |
name: "{D}" | |
roles: | |
- "{0}" | |
faws: | |
groups: | |
multiValue: true | |
value: "{Ats(http://schemas.xmlsoap.org/claims/Group)}" | |
remote: | |
- path : | | |
let $groups := mapping:get-attributes('http://schemas.xmlsoap.org/claims/Group') | |
return ( | |
if ($groups='aws.rackspace.admin') then ('billing:admin', 'ticketing:admin','admin') else (), | |
if ($groups='aws.rackspace.billing') then 'billing:admin' else (), | |
if ($groups='aws.rackspace.ticketing') then 'ticketing:admin' else () | |
) | |
multiValue: true | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment