Asp.net Identity using password and Azure Active Directory authentication

后端 未结 3 975
情书的邮戳
情书的邮戳 2021-01-01 20:20

I\'m building an ASP.NET MVC 5 web site using Asp.net Identity (OWIN) and want to support both traditional username/password authentication as well as authentication against

相关标签:
3条回答
  • 2021-01-01 20:47

    Just recently Damian Edwards from the ASP.NET team open sourced their community standup website on github. They are using Azure AD so I hope it helps in the right direction, I unfortunately don't have any experience with Azure AD.

    Here is also the youtube video of the standup where they talk about it, I think there are a few tips and maybe hints which you might be able to make use of.

    0 讨论(0)
  • 2021-01-01 20:52

    I searched examples from Microsoft. And all of them look like your solution. Look here:

    1. WebApp-WSFederation-DotNet
    2. WebApp-MultiTenant-OpenIdConnect-DotNet
    3. WebApp-OpenIDConnect-DotNet

    Another example is here with WindowsAzureActiveDirectoryBearerAuthenticationOptions

    0 讨论(0)
  • 2021-01-01 20:52

    I realize that this is an old question. I am potentially looking to do something similar but probably more like ASP.Net identity auth to more than one Azure AD tenant. I found this Integrating Azure AD into ASP.NET Core where this statement:

    ...then leverage the OnTokenValidated notification to implement your own issuer validation logic depending on which tenants you want to support (any tenant, Microsoft Account + specific list of Azure AD, single Azure AD, just Microsoft Account, etc)...

    leads me to believe that the sample code there may hold the key to this mixed auth scenario.

    0 讨论(0)
提交回复
热议问题