question

Mark-7816 avatar image
0 Votes"
Mark-7816 asked KalyanChanumolu-MSFT commented

Azure b2c RedirectUrls and localhost

For my Azure AD app registrations, I've recently followed the guidance here: https://docs.microsoft.com/en-us/azure/active-directory/develop/reply-url#localhost-exceptions 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-ad-b2c
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

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: https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-register-applications?tabs=app-reg-ga

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.