Why am I seeing invalid_request: The client with id: "XXXX" (oauth) was not found

I’m somewhat new to Auth0 and I’ve gone through the steps to set up APIs and clients of all forms. When I try to execute the Authorization Code flow the authorize endpoint returns an error.

I can execute the password grant flow for that same client and API, once I set the default connection for Username-Password-Athentication

Here is my request:

https://{MYDOMAIN}.au.auth0.com/oauth/authorize?audience=https%3A%2F%2Fmyapi.com&client_id={XXXXXXX}&response_type=code&redirect_uri=https%3A%2F%2F{REDIRECT_HOST}%2Foauth_auth0%2Fredirect&scope=openid
What am I missing?

The authorization endpoint for your service as mentioned in the documentation is available at https://{your_domain}{.region_if_not_default}.auth0.com/authorize and not at /oauth/authorize so you should update the endpoint you’re using accordingly.

1 Like