1

Using IdentityServer3 with ASP.NET Identity as an OAuth server, I can return roles and claims in the token response. If I want to override IdentityUser and add LastName, how would I return that in the token response? Or do I need to add LastName to AspNetUserClaims table instead of in the IdentityUser object/AspNetUsers table?

1 Answer 1

1

It looks like you may have to override GetClaimsForAuthenticateResult() in the UserService. I tried adding a ClaimesIdentityFactory to the UserManager but it seems that doesn't actually get executed anymore.

https://github.com/IdentityServer/IdentityServer3/issues/1204

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.