SCIMReferenceCode icon indicating copy to clipboard operation
SCIMReferenceCode copied to clipboard

JWT Token with Issuer and Audience for One Azure Tenant Used by Another Tenant in SCIM Application

Open Ashish0016 opened this issue 1 year ago • 0 comments

I am configuring Azure User provisioning for my .NET Core web API project. I have created a sample SCIM application and deployed it on a Windows server. A specific token is generated for the application within a particular tenant. The token has the following issuer and audience:

  • [ ] Issuer: https://sts.windows.net/My_TenantId
  • [ ] Audience: Application ID d0d2ce47-8775-4a20............d0d2ce47..

When I test the connection for the tenant with the corresponding URL and valid token, it works as expected. However, the problem arises when I test the connection with an application inside a different tenant. Surprisingly, the connection is still successful. The following tenantId I have used with the application Id as mentioned below and It's working fine. https://i.sstatic.net/AJYyfo78.png

But the problem is that it is working with another Tenant as well. Expected result :- When I generate the token for one tenant, it should work only for the applications which exists in that tenant. Test connection should fail for other tenants if the token is not generated for them.

Ashish0016 avatar Jun 19 '24 02:06 Ashish0016