Closed ahmedtahami closed 2 years ago
@brockallen Could you please help me?
This is not directly related with identityserver. Maybe you want to check this blog post about claim-based authentication.
Basically, UserClaimsFactory creates a claims principal using user manager. And this happens during the sign in process. You can only add custom claims during the sign in process with using claims factory.
Changing the logged in user after a user is signed in, is the concept of impersonation.
This organization is not maintained anymore besides critical security bugfixes (if feasible). This organization will be archived when .NET Core 3.1 end of support is reached (3rd Dec 2022). All new development is happening in the new Duende Software organization.
The new Duende IdentityServer comes with a commercial license but is free for dev/testing/personal projects and companies or individuals making less than 1M USD gross annnual revenue. Please get in touch with us if you have any question.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Questions are community supported only and the authors/maintainers may or may not have time to reply. If you or your company would like commercial support, please see here for more information.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Problem:
I want to refresh user claims in identity server 4. I have made an API endpoint in identity server project. This API endpoint is given below. After that I call the UserInfoEndpoint and RefreshTokenEndpoint from my Angular Client using oidc-client.js library. I get the refreshtoken and new accesstoken but the claims in the response are old. I have to relogin in my client and identity server to reload the updated claims.
API Code
Desired Output:
I want to have same claims in my identity server session as well as the Ng session. if you can help me it would be highly appreciated.