{"action":"created","issue":{"url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/12","labels_url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/12/comments","events_url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/12/events","html_url":"https://github.com/JamesRandall/AngularJS-OAuth2/issues/12","id":95429258,"number":12,"title":"Technique to access and decode Identity Token","user":{"login":"pinnprophead","id":5665944,"avatar_url":"https://avatars.githubusercontent.com/u/5665944?v=3","gravatar_id":"","url":"https://api.github.com/users/pinnprophead","html_url":"https://github.com/pinnprophead","followers_url":"https://api.github.com/users/pinnprophead/followers","following_url":"https://api.github.com/users/pinnprophead/following{/other_user}","gists_url":"https://api.github.com/users/pinnprophead/gists{/gist_id}","starred_url":"https://api.github.com/users/pinnprophead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinnprophead/subscriptions","organizations_url":"https://api.github.com/users/pinnprophead/orgs","repos_url":"https://api.github.com/users/pinnprophead/repos","events_url":"https://api.github.com/users/pinnprophead/events{/privacy}","received_events_url":"https://api.github.com/users/pinnprophead/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-16T13:07:44Z","updated_at":"2015-09-22T17:37:42Z","closed_at":"2015-09-21T20:39:13Z","body":"I'm trying to figure out how to get the Identity Token after sign-in to determine user claims like email address, username etc. Since the page reloads after going to the Login, how can you catch the identity token and parse it?"},"comment":{"url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/comments/142358268","html_url":"https://github.com/JamesRandall/AngularJS-OAuth2/issues/12#issuecomment-142358268","issue_url":"https://api.github.com/repos/JamesRandall/AngularJS-OAuth2/issues/12","id":142358268,"user":{"login":"JamesRandall","id":236247,"avatar_url":"https://avatars.githubusercontent.com/u/236247?v=3","gravatar_id":"","url":"https://api.github.com/users/JamesRandall","html_url":"https://github.com/JamesRandall","followers_url":"https://api.github.com/users/JamesRandall/followers","following_url":"https://api.github.com/users/JamesRandall/following{/other_user}","gists_url":"https://api.github.com/users/JamesRandall/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesRandall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesRandall/subscriptions","organizations_url":"https://api.github.com/users/JamesRandall/orgs","repos_url":"https://api.github.com/users/JamesRandall/repos","events_url":"https://api.github.com/users/JamesRandall/events{/privacy}","received_events_url":"https://api.github.com/users/JamesRandall/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T17:37:42Z","updated_at":"2015-09-22T17:37:42Z","body":"They're basically just base 64 url encoded strings, I've used this simple library here for doing it in JavaScript land https://github.com/auth0/jwt-decode. Hope that helps!"}}