Application API is not working After integration with Auth0

Ready to post? :magnifying_glass_tilted_right: First try searching for your answer.

We are having the application deployed into the production and the deo environment having the SSO enabled. Both the environments are having the separate tenants. The production environment gets accessed regularly and its SSO is working without any issue. But the Demo environment is rarely used and was used 3 months before. It was working at that time without any issue. After 3 months we have deployed the working branch of the production to the demo environment and found that user is not able to pass the Authentication. We did some investigation and found that the secrete was expired. We have renewed the secrete and updated the same into the Auth0 configurations. Post that , Auth0 system was able to authenticate the user without any issue. After authentication the Auth0 was calling the callback url and post that the application rest api’s, the rest api call’s are getting failed when the Auth0 is enabled. But same works when we do not have any Auth0 enabled. The error we get from accessing rest api is 500 Not found. We tried multiple way to fix the same but still the same error is coming. For more clarity I am repeating again that same application api’s works when we do not enabled auth0 but it fails when we have auth0 enabled. Below is the error:

HTTP ERROR 500 Not Found
URI:	/rest/users/userData/loginEnterprise
STATUS:	500
MESSAGE:	Not Found
SERVLET:	default

Requesting assistance if anyone knows the solution for the same.

Hi @rbodhe

Welcome to the Auth0 Community!

Reading through your use-case, I believe there could be a couple of reasons why you’re getting this error message, likely something misconfigured on the application’s backend. Please check the following in case the issue might lie in any of these:

  • check that the Issuer and the Audience match;
  • check the backend application’s logs in case it offers more details of the error;
  • ensure that the scopes and permissions are correctly set, enable RBAC in case your app uses this feature.

Hope this helped!
Gerald