IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

How to handle 3rd party (non-ui) authentication

Open XplMarcel opened this issue 9 years ago • 3 comments

I have the following situation:

  1. An Authentication server (identityserver 4)
  2. An API application.
  3. 3rd parties (non-ui) using the API application.

3rd parties can register an account after which they retrieve a generated client_id and client_secret so they can authenticate from their API application (machine to machine) to be able to use our API application. The problem is that i want to add the tenantId's of tenants they can use (which can be maintained by the 3rd party) to the generated access_token, so the 3rd party knows which tenants can be used and on our API side if the 3rd party is authorized to use a certain tenant. I can't add claims, since an access_token generated with this flow doesn't represent a User.

So how do i handle authentication like that ? Is the client_credentials flow the right one ?

XplMarcel avatar Apr 19 '17 07:04 XplMarcel

Clients can have claims as well. Check Client.

leastprivilege avatar Apr 19 '17 07:04 leastprivilege

Solved.. thanks

XplMarcel avatar Apr 20 '17 10:04 XplMarcel

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]