/authorize
request with audience=https://login.northwind.com/userinfo
, the server will return a Service not found: https://login.northwind.com/userinfo
error. This is because even if you set a custom domain the API identifier for the /userinfo
endpoint remains https://{yourOriginalAuth0Domain}/userinfo
.
Similarly, using your custom domain in calls to the Auth0 Management API will error for the same reason.
To fix this your app should instead use audience=https://{yourOriginalAuth0Domain}/userinfo
. You can also remove this audience=[...]/userinfo
parameter altogether if your application is flagged as OIDC-Conformant in the OAuth2 tab of the application’s Advanced Settings.