Our organisation has two tenants.
staging-tenant.eu.auth0.com
prod-tenant.eu.auth0.com
We are using this to run M2M client credential authentication. In each respective tenant, we have created the relevant M2M apps. For this example, app1
exists in staging-tenant.eu@auth0.com
.
If I send a token request with the app1
credentials to the prod
tenant I get a valid jwt back.
curl --request POST \
--url https://prod-tenant.eu.auth0.com \
--header 'content-type: application/json' \
--data '{"client_id":"APP1_CLIENT_ID","client_secret":"APP1_CLIENT_SECRET","audience":"API_ID","grant_type":"client_credentials"}'
This shouldn’t happen as app1
is only registered and configured in the staging
tenant so I would expect the prod
tenant to not recognize the app1
client ID and return Unauthorized
.