Closed pinnprophead closed 8 years ago
Hi pinprophead, what kind of application is it? I'm guessing MVC / ASP.Net. You should be able to cast the User property on the controller to a ClaimsPrincipal and this in turn as a Claims property that contains all the various claims. There's an example here:
Let me know if you're using some other form of technology and I'll try to help.
Actually I was talking about on the angular client. What I want to do is get the Identity Token and extract the user's email address. This issue was reported on an earlier version of the angularjs-oauth2 component, and I just updated it. It now is behaving quite a bit differently, so I will dig into it again.
Handily 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!
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?