Authroisation not redirecting to correct URL listed in "Redirect URLs"

Phil Gray 11 Reputation points
2022-02-15T14:22:39.807+00:00

Hi

I have a SaaS application which needs access to users' mailboxes.

The issue I'm facing is despite supplying the correct return URL (all lowercase etc), the Authorise process returns the user to what appears to be the last entered URL.

Response.Redirect(String.Format("https://login.microsoftonline.com/common/oauth2/v2.0/logout?post_logout_redirect_uri={0}", Request.Url.ToString.ToLower))

In App Registration, I've tried putting a trailing slash on the page and I've tried specifying .aspx

What's worse is the user doesn't get an error, they get redirected to someone else's application rather than an error!

What do Ihave to do to make sure Azure redirects the user to the correct URL?

Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,566 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Coder 0 Reputation points
    2023-05-07T06:11:18.9633333+00:00

    I also have the same issue, @Phil Gray How did you resolve it?