Created
August 21, 2023 10:53
-
-
Save NilukaSripalim/f637fd2f9020274886cfbeb3331679de to your computer and use it in GitHub Desktop.
Asgardeo Claim Mapping via Adaptive Script
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
var onLoginRequest = function(context) { | |
executeStep(1, { | |
onSuccess: function(context) { | |
var user = context.currentKnownSubject; | |
user.localClaims['http://wso2.org/claims/givenname'] = "test"; | |
user.localClaims['http://wso2.org/claims/entitlement'] = "Upon a hill, the sun does rise,Painting the world with golden skies. Nature's beauty, a gentle song, In every heart, it does belong."; | |
} | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment