Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AngularJS to implement extra round trip to get the user claims #38

Closed
damienbod opened this issue Dec 4, 2016 · 2 comments
Closed

Comments

@damienbod
Copy link
Owner

This requires an extra round trip with IdentityServer rc4 to get the user claims, roles, no longer included in the id_token

@RolfVeinoeSorensen
Copy link

Hi Damien

First of all thank you for a great reference project. I am using the ResourceWithIdentityServerWithClient project as inspiration for my site.

This bug is it related to when I log in and get returned to the ng2 spa then the link still says log in until I log in again then admin links starts to work and link changes to log out?

It would be great if you could help me suggest a solution.

@damienbod
Copy link
Owner Author

Hi @RolfVeinoeSorensen, you need to save the user data, security tokens local some where on the client, local storage, cookies, redux or whatever and then implement a service or a guard which can be used to switch between a logged in compoenents, and the log in component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants