asp.net Web application signing in Azure Active Directory
Anjali Agarwal
1,591
Reputation points
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.
I am calling SignIn method from PageLoad of my asp.net application.
Any help will be appreciated.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
A cloud-based identity and access management service for securing user authentication and resource access
Developer technologies | ASP.NET | Other
Developer technologies | ASP.NET | Other
A set of technologies in .NET for building web applications and web services. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Sign in to answer