Skip to content

Instantly share code, notes, and snippets.

@RackerWilliams
Created January 29, 2018 18:08
Show Gist options
  • Save RackerWilliams/cdfe8e99fea28a2177ac89a14210440d to your computer and use it in GitHub Desktop.
Save RackerWilliams/cdfe8e99fea28a2177ac89a14210440d to your computer and use it in GitHub Desktop.
---
mapping:
rules:
- local:
user:
domain: '5821006'
name: "{D}"
email: "{At(http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress)}"
roles:
>-
{Pts(
let $groups := mapping:get-attributes('http://schemas.xmlsoap.org/claims/Group')
return
if ($groups = 'admin') then $groups else error(xs:QName('mapping:reject'),'Get out!')
)}
expire: "{D}"
version: RAX-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment