'Accessing Claims from WS-Fed after authentication
I am currently working on a project where I am using ADFS to login the user. I am using WS-Fed with my relying party trust and am able to successfully login and sign out the user using these. However I need to be able to grab the users information from ADFS in order to store it in a local database. I am using JavaScript to do all this and am currently just doing two redirects, one for log in when the user tries to access the application (on success calling a endpoint to redirect to the main app page) and another when they press the logout button. I can see that the cookie is being created from the security token and I know that if I was able to access the security token then the claims should be stored inside it but I am not aware of how to do this. All the examples I have found are using a .NET framework which can't be applied to my situation. If anyone could help me or point me in the correct direction for how to grab claims only using JavaScript that would be immensely appreciated.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
