Azure b2c RedirectUrls and localhost

Mark 1 Reputation point

For my Azure AD app registrations, I've recently followed the guidance here: to update my https://localhost redirect urls to remove the :port number from the Url.

So when doing local debugging we can run our web app locally on any port and still login via Azure AD without having to explicitly set up the port numbers in the App registration.

However, the same doesn't seem to work in Azure B2C redirect urls. When I take the port number out of my https://localhost urls I can't login as the redirect that comes back no longer has the port number.

Is just not supported in Azure b2c, or do I need to do anything extra in my set up?

Azure Active Directory External Identities
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 20,516 Reputation points Microsoft Employee

    It needs to match the path of your running application (whether it's local or published), so you would need to add the port number. This is documented here:

    No comments