Unable to issue redirect for OAuth 2.0 transaction - login

I’ve just set up my login with Auth0 using Angular. I have created an application in Auth0 and connected it to a MongoDB database, I have tested this connection and it works fine.
When I click ‘Login’ in my angular application, I am presented with the Auth0 login interface. I entered login details to match credentials in my MongoDB database and was asked by Auth0 if my application could access my details, which I granted. After this, an error page appeared stating ‘Unable to issue redirect for OAuth 2.0 transaction’.
I’ve went back to look at my application settings and the allowed callback URLs, logged-out URLs and web origins have all been entered. I have no idea what could be causing this issue.

here is the context data:
“connection”: “MongoDB”,
“error”: {
“message”: “Unable to issue redirect for OAuth 2.0 transaction”,
“oauthError”: “server_error”,
“type”: “oauth-authorization”


Having the same issue

1 Like

Yes, same exact issue here except it is with the default auth0 database provider.

Ok I figured it out. When configuring the auth0 client, you need to explicitly specify the redirect uri now. This wasn’t required in older versions. I’m not sure when they changed this. I just updated my client today to the newest version, which is why it broke for me.

      authorizationParams: {
        redirect_uri: environment.redirectUri
1 Like

Im unsure what to set as my environment. redirectURI.

I’m wanting it to redirect to http://localhost:4200

You can just set it directly to start

redirect_uri: 'http://localhost:4200'

However, it should eventually be set via an environment variable since your local vs production redirects are going to be different.

1 Like

Make sure that the redirect_uri is spelled properly.

1 Like

Hey there everyone!

Thanks for sharing that knowledge with the rest of community!