ASP.Net: Implement sign in (Login) using Azure Active Directory

on Nov 08, 2021 01:48 AM

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. 

I am calling SignIn method from my web application PageLoad method.

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

public void SignIn()
    if (!Request.IsAuthenticated)
            new AuthenticationProperties{ RedirectUri = "/" },

Any help will be appreciated.

Download FREE API for Word, Excel and PDF in ASP.Net: Download