question

sludd85-7044 avatar image
0 Votes"
sludd85-7044 asked sludd85-7044 commented

Active Directory does not work after deployment

I followed this tutorial: https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-asp-webapp to add sign in to microsoft to my web app. All worked fine when running in IIS Express through Visual Studio. However after publishing and deploying to an IIS Express website the AAD Authentication no longer works,

This statement In Home Controller.vb:


        If Not Request.IsAuthenticated Then
             HttpContext.GetOwinContext().Authentication.Challenge(New AuthenticationProperties With {
             .RedirectUri = "/"
         }, OpenIdConnectAuthenticationDefaults.AuthenticationType) 


does nothing except to simply reload the home page

There are no errors and nothing appears in the logs in my Azure Account.

is there something I am missing from the deployment?

azure-active-directory
· 2
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.

Do you get any error in the network logs or correlation ID?

Without additional information, my guess is that it is either an issue with the authentication token or an issue with the app registration. Please make sure that the reply URL in the app registration matches what you have configured in your application code and that it redirects the users to wherever they need to go.

Reloads can also be caused if you are trying to load any custom login screens.

Do the users show up in the Azure AD sign-in logs or does the authentication completely fail?

https://stackoverflow.com/questions/55579370/how-to-stop-reload-loop-after-logging-into-custom-azure-ad-b2c-page
https://stackoverflow.com/questions/54321482/azure-ad-authentication-expects-me-to-refresh-the-main-page-every-few-hours

0 Votes 0 ·
sludd85-7044 avatar image sludd85-7044 MarileeTurscak-MSFT ·

No errors in the Network Logs or correlation ID and nothing shows up in the Azure Ad sign in logs.

0 Votes 0 ·

0 Answers