简体   繁体   English

针对REST服务的Web API2身份验证

[英]Web API2 authentication against a REST service

We would like to use the new authorization/token system of Web API2 and have upgraded to MVC5/Web API2. 我们想使用新的Web API2授权/令牌系统,并已升级到MVC5 / Web API2。

There is an internal REST API that does authentication already that we would like to reuse. 有一个内部REST API已经在进行身份验证,我们想重复使用。 Essentially it takes uid/pwd and some additional profile parameters and returns true/false. 本质上,它需要uid / pwd和一些其他配置文件参数,并返回true / false。

Question: how to hook up an authentication filter against that service instead of the default Entity Framework 6 DB-based Identity store? 问题:如何针对该服务而不是默认的基于Entity Framework 6 DB的身份存储来连接身份验证筛选器?

I looked at UserManager class and it is unclear this is the right path. 我查看了UserManager类,目前尚不清楚这是正确的路径。

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

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