Last active
December 16, 2015 03:49
-
-
Save wbamberg/5373100 to your computer and use it in GitHub Desktop.
parsing email address out of a Persona assertion
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 components = assertion.split("."); | |
var decodedPayload = atob(components[1]); | |
var email = JSON.parse(decodedPayload).principal.email; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment