简体   繁体   中英

Minimum Requirements To Use MSAL For Azure B2C

I am tasked with implementing Azure B2C into an existing ASP.Net Web Forms application as a second form of signing in. It currently uses forms authentication authenticating with username/password against an established series of Sql Server database tables.

Can MSAL library be used with Form Authentication?

We have existing user tables that will need to be used as they are used by other applications and will not be able to be updated.

Please let me know if you need more details to provide a better answer.

Thank you in advance.

It seems you want to add azure ad b2c authentication to your existing application which have form authentication.

AFAIK, in our web application we can not pass the username/password directly to Azure AD for authentication.

To use Azure AD along with form based authentication based on SQL DB stored username and password we will have to set the authentication mode to none in web.config . And create a new Authorization filter to redirect the users who are unauthorized to that form based login page.

Also Users can log in using OAuth 2.0 with credentials from an external authentication source like Facebook, Twitter, LinkedIn, Microsoft, or Google.

For complete setup please refer this MICROSOFT DOCUMENTATION & SO THREAD

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM