Last active
October 2, 2020 15:12
-
-
Save dmnkgrc/136d10a8261dc953abab01751cf6581a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| local claims = { | |
| email_verified: true | |
| } + std.extVar('claims'); | |
| local groups = std.extVar('groups'); | |
| { | |
| identity: { | |
| traits: { | |
| [if "email" in claims then "email" else null]: claims.email, | |
| [if "name" in claims then "name" else null]: claims.name, | |
| [if "groups" in claims then "groups" else null]: claims.groups, | |
| "groups": groups | |
| }, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment