1

My Web Form application has to connect to Azure AD for Single-Signon. I have added an OWIN Startup class and added the code shown in the answer of this post:

404 not found error when trying to initialize Azure AD

When I run the application, it gives "access denied".

I read about X509 certificates authentication in the below link and added the code in Login.aspx however, it is never reaching this code. It hits Startup.cs code of the above link and throws error "Access Denied":

https://learn.microsoft.com/en-us/azure/app-service/app-service-web-configure-tls-mutual-auth#special-considerations-for-certificate-validation

I want to know whether X509 certificate code is also required and how it can be authenticated.

In the second link, check this section: "ASP.NET WebForms sample". I have added this code in Login.aspx.

RKh
  • 13,818
  • 46
  • 152
  • 265

1 Answers1

0

Web Form application has to connect to Azure AD for Single-Signon

Thank you soumi-MSFT Posting your answer to help other community members .

"Unfortunately, we do not have any samples published or available for ASP .Net WebForms. All that is available are MVC applications. You can find the list of available samples here .

Having said that, since ASP .NET WebForms uses the traditional an event-driven model, I believe the ASP .NET WPF sample might help. Please find the sample here "

For more information Please refer the below Links:

.ASP.NET Web Forms application to use Azure Active Directory . .

.SO thread.& X.509 Client certificate credential | Git-Hub .

AjayKumarGhose
  • 4,257
  • 2
  • 4
  • 15