简体   繁体   English

使用Web Api,成员资格提供程序和SQL Server 2012的身份验证服务

[英]Auth service using Web Api, membership provider, and SQL Server 2012

I am looking to write an auth service using Web Api, and SQL Server for authenticating and authorizing users on my .net site, but ios and Android apps as well. 我希望使用Web Api和SQL Server编写身份验证服务,以对我的.net网站(但包括ios和Android应用程序)上的用户进行身份验证和授权。 I'm speculating that basic authentication over SSL is the easiest way to go, but I'm pretty new to this whole section of .net. 我推测通过SSL进行基本身份验证是最简单的方法,但是我对.net的整个部分还很陌生。 I'm having trouble finding some clear tutorials that explain how to write such a service. 我很难找到一些清晰的教程来解释如何编写这样的服务。 Can anyone point me to some resources on how to do this? 谁能指出一些有关执行此操作的资源? I'd appreciate it. 我会很感激的。

I think you need to look OAuth implementation in .NET. 我认为您需要查看.NET中的OAuth实现。

Here is a video to give you some background on Web API security. 是一个视频,为您提供有关Web API安全性的一些背景知识。

I also suggest getting a trial subscription to Pluralsight training and check out the courses on Web API security. 我还建议您试用Pluralsight培训,并查看有关Web API安全的课程。

You may want to target the latest release of Web API 2.0 from Microsoft, it has the most features you'll need. 您可能想要针对Microsoft的最新版本的Web API 2.0,它具有所需的大多数功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM