Auth0 Home Blog Docs

'Unable to issue redirect for OAuth 2.0 transaction' error from hosted page

oidc
login
hosted-login-page

#1

I’m trying to set up universal login with the hosted page, using the custom UI template.
Calls to /authorize return the login/sign up screen as expected, but after a successful login I get the above error.

Here’s the section of code for webAuth, the only change to default I’ve made is specifying the scope:

      var params = Object.assign({
    domain: config.auth0Domain,
    clientID: config.clientID,
    redirectUri: config.callbackURL,
    responseType: 'code'
  }, config.internalOptions);

  var webAuth = new auth0.WebAuth(params);

  var databaseConnection = 'Username-Password-Authentication';

  function login(e) {
    e.preventDefault();
    var username = document.getElementById('email').value;
    var password = document.getElementById('password').value;
    webAuth.login({
      realm: databaseConnection,
      username: username,
      password: password
    }, function(err) {
      if (err) displayError(err);
    });
  }

Is there a setting I’ve missed somewhere?


#2

I should add, there is a callback url defined for the client, and I’ve tried hard coding it here, same result.