question

AnjaliAgarwal-1903 avatar image
0 Votes"
AnjaliAgarwal-1903 asked AnjaliAgarwal-1903 commented

asp.net Web application signing in Azure Active Directory

I have the following code in my application for AD authentication:

 public void SignIn()
 {
     if (!Request.IsAuthenticated)
     {
         HttpContext.GetOwinContext().Authentication.Challenge(
             new AuthenticationProperties{ RedirectUri = "/" },
             OpenIdConnectAuthenticationDefaults.AuthenticationType);
     }
 }

I am getting authenticated without seeing this single sign-on window. I just choose the option of "Stay Signed in" and after that I never saw this window. I am getting authenticated, but no window even if I close the application and reopen it again.

NXMEK.png

I am calling SignIn method from PageLoad of my asp.net application.

Any help will be appreciated.


dotnet-csharpazure-active-directorydotnet-aspnet-webforms
· 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.

Is your preference that the user is forced to login each time?

0 Votes 0 ·

yes, I would like that user is forced to login everythime

0 Votes 0 ·

0 Answers