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
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.
I searched examples from Microsoft. And all of them look like your solution. Look here:
Another example is here with WindowsAzureActiveDirectoryBearerAuthenticationOptions
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.