0

I just want to check if there's any reason what I'm proposing won't work. I'm migrating an existing site with an existing membership base to MVC and want to make use of Asp.net Identity and the OWin based authentication. These site users will authenticate against the database and I've build a User Store and persistance logic for this

But for certain users (site admins) I need to also auth against Azure Active Directory. I want to Auth against active directory on a certain folder/url which will be different from the main auth logic for the site (login can happen normally from anywhere)

Is there any problem firstly with using 2 different sources for my auth on the same library, and secondly two different login locations for my procedure (Active directory on a specific URL and database from anywhere else) I expect the configuration to be a bit tricky but not impossible.

Thanks in advance

4

1 回答 1

1

绝对有可能。请参阅此处的示例,特别是 Startup.Auth.cs 中的 SecurityTokenValidated 处理程序,以获得良好的起点。

https://github.com/AzureADSamples/WebApp-MultiTenant-OpenIdConnect-DotNet

- 富有的

于 2014-04-14T16:22:01.630 回答