Last post Jun 15, 2020 07:39 PM by PatriceSc
Jun 15, 2020 01:48 PM|william12512512|LINK
I have a Web forms Webapp that supports normal Forms Authentication login, that connects to a database. I want to add an extra option for users to be able to login with their Microsoft account, while still having the option to log in normally.
I know I want to use Owin and OpenID connect for this. I also know I want to match credentials from the ID-Token after logging in with Microsoft, with existing users in my own database, for users to be able to log in with both options.
My concern is, that I am not able to implement these things at the same time. For example, from what I have read, <authentication mode="Forms"> need to be <authentication mode="None"> for Azure AD authentication to work.
Jun 15, 2020 02:15 PM|PatriceSc|LINK
Try https://docs.microsoft.com/en-us/aspnet/visual-studio/overview/2013/creating-web-projects-in-visual-studio#indauth (this
is also basically what is used on this site) it uses ASP.NET Identity and you can link an external provider to your local account...
Jun 15, 2020 03:41 PM|william12512512|LINK
Hello. That is referring to Windows authentication, not Microsoft Authentication.
Jun 15, 2020 07:39 PM|PatriceSc|LINK
Nope the link is expected to point to the "individual user accounts" option.
Edit: the link that follows seems to be broken but it should be then https://docs.microsoft.com/en-us/aspnet/mvc/overview/security/create-an-aspnet-mvc-5-app-with-facebook-and-google-oauth2-and-openid-sign-on