Secure a FastAPI Server with Auth0 - Invalid User

Hi everyone,

I’m setting up a server with FastAPI and I want to secure its endpoints using Auth0.

I’ve followed and implemented this article Build and Secure FastAPI Server with Auth0 and also this video How to Protect an API in FastAPI with Auth0.

Right now, if I want to test the configured API in Auth0 requesting a token with my client id and client secret, I receive the following error back:

{'status': 'error', 'message': 'Invalid issuer'}

I’ve verified the token in and looks correct and also verified my domain, api audience, issuer, and algorithms variables and can’t see any issues.

I haven’t found further information to this error and that’s why I’m posting this here. Hopefully someone could help me or if anybody has any ideas, I would appreciate it very much!

Best regards,