Azure-Samples/storage-dotnet-azure-ad-msal

Redirect URL only working with HTTPS

Opened this issue · 1 comments

The sample code only worked after setting the redirect URL to HTTPS. Nevertheless, the original article suggests using:

http://localhost:5000/signin-oidc

I understand there are restrictions for the redirect URL but HTTP is supposed to work. This certainly may not be a bug but clarifications in the article would greatly help. Thanks!

Just to add some addition info for anybody else that has a problem, you'll need to update the applicationUrl in launchSettings.json:
"applicationUrl": "https://localhost:5000/"

and update your Redirect URI in the AAD app registration to:
"applicationUrl": "https://localhost:5000/"

This is what I had to do for the sample to run without error.