将 ActiveDirectory 授权与 ASP.NET Identity 一起使用 [英] Use ActiveDirectory authorization with ASP.NET Identity

查看:26
本文介绍了将 ActiveDirectory 授权与 ASP.NET Identity 一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 asp.net mvc 实现企业网站,并希望使用新的 ASP.NET Identity 框架.是否可以将 ActiveDirectory 授权与 ASP.NET Identity 集成?任何示例如何做到这一点?

I'm implementing corporate website with asp.net mvc and want to use new ASP.NET Identity framework. Is it possible to integrate ActiveDirectory authorization with ASP.NET Identity? Any samples how to do it?

推荐答案

  • 是的,可以使用基于声明的身份验证.它现在已集成到 .Net 4.5(之前称为 WIF).

    • Yes it's possible using a claim based authentication. It's integrated to .Net 4.5 now (before it was called WIF).

      您可以使用 Thinktucture,这是一个非常强大的身份验证提供程序,它有一个关于如何集成 ADFS 的完整示例.这是它的链接.

      You can use Thinktucture, which is a very robust authentication provider it has a full example on how to integrate ADFS. Here is a link for it.

      这是为 MVC4 应用程序执行此操作的另一种方法 - 包含 MVC 4 和 ADFS 集成指南

      Here is another way to do it for an MVC4 app - MVC 4 and ADFS integration guide included

      这是使用 ADFS 本​​地组织身份验证和 Visual Studio 2013 本地主机开发的 MVC5 Web 应用

      如果您不想使用 ADFS,您可以使用 ActiveDirectoryMembershipProvider.它适用于 Windows 身份验证,这是将它与表单身份验证一起使用的帖子 - Chris Schiffhauer - 在 ASP 中实现 Active Directory 身份验证.NET MVC 5:

      If you don't want to use ADFS you can use the ActiveDirectoryMembershipProvider. It works with Windows authentication and here's an post of using it with Forms authentication - Chris Schiffhauer - Implement Active Directory Authentication in ASP.NET MVC 5:

      这篇关于将 ActiveDirectory 授权与 ASP.NET Identity 一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆