Auth0 Home Blog Docs

Getting server error while following Azure AD multi-tenant application tutorial

oauth

#1

Has any body tried the tutorial available at:

https://auth0.com/docs/tutorials/building-multi-tenant-saas-applications-with-azure-active-directory

In particular, using an Angular 2 project? I followed exactly as per the above link but I get the following error:

server_error: Unable to issue redirect for OAuth 2.0 transaction

#2

The link you mentioned includes a code snippet similar to the following in the signin section:

webAuth.authorize({
  connection: YOUR_AUTH0_CONNECTION_AZURE_AD_NAME,
  responseType: 'code',
  // repeat any needed custom auth params here
  // , redirectUri: "..."
});

If you did not update this block to include - uncomment - the redirectUri parameter then this may explain the specific error you got (Unable to issue redirect for OAuth 2.0 transaction) given that error will be triggered if the authorization server does not know where to perform the HTTP redirection.


#3