IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

How to restrict users to get an access_token depending on scope

Open XplMarcel opened this issue 9 years ago • 2 comments

I have an IS4 server which is being used for multiple API's (using ApiResource). Lets say "Api1" and "Api2" and users "User1", "User2" and "User3". I want "User1" to be able to only retrieve an access_token for "Api1", "User2" only for "Api2" and "User3" for "Api1" and "Api2".

I already tried to implement this using soo many code samples as a reference, but i can't seem to figure out how i would model my ApiResources, Clients and Users to accomplish this.

Any suggestions and or documentation/code sample references i could be pointed too ?

XplMarcel avatar Apr 20 '17 10:04 XplMarcel

That's not typically done in IdentityServer. Scope validation is about clients, not users. Do your user authorization in the resource server.

brockallen avatar Apr 21 '17 22:04 brockallen

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jan 14 '20 18:01 lock[bot]