如何在asp.net web api中的C#.net framework 4.5上使用活动目录 [英] How to use active directory on C#.net framework 4.5 in an asp.net web api

查看:153
本文介绍了如何在asp.net web api中的C#.net framework 4.5上使用活动目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,我正在开发一个应用程序,并被告知我需要使用活动目录进行用户身份验证和授权。



我从来没有听说过活动目录。



我的问题是在设置连接字符串之后如何在asp.net web api 2上使用它?



我在互联网上已经阅读了一些关于此的信息,但我真的没有得到它的要点......请帮助。

Hey guys, I was developing an application and was told I need to use active directory for users authentication and authorization.

I had never even heard of active directory.

My question is after setting up the connection string how do I use this on an asp.net web api 2?

I have read some information about this on the internet but I'm sincerely not getting the gist of it... please help.

推荐答案

Active Directory在许多组织系统中都可用,它们允许用户使用跨多个服务服务器的单个凭据登录到多个应用程序或服务。例如,您可以以Microsoft的Azure为例。您可以创建10个不同的Web应用程序(服务)以方便用户。您不希望为每个网站创建单独的登录系统,依此类推......您使用Active目录允许用户使用其组织凭据登录所有这些服务...



ASP.NET允许您(在项目创建时)选择是否需要个人帐户或组织帐户,在组织帐户下,您可以使用Active目录(来自某个提供商) )例如Microsoft Azure的目录。请阅读本文档 [ ^ ]了解更多信息。
Active Directory is available in many organizational systems where they allow users to log in to multiple applications or services using their single credentials all across multiple service servers. For example, you can take the example of Microsoft's Azure. You can create 10 different web applications (services) to facilitate users. You don't want to create a separate log in system for every website, and so on... You use the Active directory to allow users to use their organizational credentials to sign in to all of these services...

ASP.NET allows you (at the project creation time) to select whether you want Individual accounts or Organizational accounts, under Organizational accounts, you get to use an Active directory (from some provider) such as Microsoft Azure's directory. Please read this document[^] to learn more on this.


这篇关于如何在asp.net web api中的C#.net framework 4.5上使用活动目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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