Error: "Unable to issue redirect for OAuth 2.0 transaction"

Problem statement

I have a situation where login to an application fails with the error: "Unable to issue redirect for OAuth 2.0 transaction ".

This may happen with any type of connection that depends on OAuth 2.0 , such as a custom OAuth2 connection.

Symptoms

The error suggests that an OAuth2 transaction was initiated without a redirect URI so the authorization server was unable to then issue a redirect.

It commonly arises when there is some issue in the redirect_uri in the initial /authorize issued by the application. However, you should be alert to the possibility of other possible causes.

The error may be encountered either when using an Auth0 SDK / Quickstart or when developing custom code.

Cause

It could arise from a ‘typo’ in your code such as incorrect:

Solution

The solution will vary according to the root cause of the problem. Check the cause section.