SiberianGuy
SiberianGuy

Reputation: 25302

How to get Role Claims in IdentityServer

I have users that're part of Roles which have Claims specified for them. I authenticate my users using IdentityServer (version 3 at the moment) with IncludeAllClaimsForUser set to true. I expected IdentityServer to automatically retrieve Role Claims but it doesn't.

Is there a way to make IdentityServer care about Role Claims or is customizing through ProfileServer is the only way to go?

Upvotes: 0

Views: 912

Answers (1)

Boopathy T
Boopathy T

Reputation: 557

if you need user information you have to use userinfo endpoint or while making a request for token add the scope that is related to user claim.

Upvotes: 1

Related Questions