A 500 error occurs when calling https://[tenant_name]/oauth/token

When sending the following request, we receive an error. This issue occurs only in our Develop environment, while other environments function correctly. We are unsure why this is happening exclusively in this environment. Previously, it was working fine, and to our knowledge, no changes have been made to the Auth0 settings.

curl --location 'https://[tenant_name]/oauth/token' \
--header 'Content-Type: application/json' \
--data-raw '{
  "client_id": "",
  "client_secret": "",
  "audience": "https://dev-platform-api.example.com/api",
  "grant_type": "password",
  "username": "",
  "password": ""
}'

Response

{
    "error": "access_denied",
    "error_description": "No organization record found for ID:"
}

Hi @k.takeuchi,

The "No organization record found for ID:" is an error that indicates that the organization ID you passed does not exist on your tenant.

Have you ensured that you used a correct organization ID?

I also do not see you passing it in your ROPG grant flow request.

We are not utilizing the Organizations feature.
We have tested sending a similar request in a different environment, and it is functioning as expected.
If Organizations has been enabled due to some configuration, we would appreciate your support in addressing this issue.
However, based on our review of the settings, we have not found any anomalies.

Hi @k.takeuchi,

As far as I can tell, there isn’t an issue that stands out as to why your ROPG request fails only in your development environment.

I have even checked your development tenant and see that you don’t have the Organizations feature configured either.

In this case, I recommend checking your Auth0 Logs to see if there are any clues to the issue you are experiencing.

Let me know about your findings.

Thanks,
Ruebe

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.