我希望在使用ASP.NET Web API时从客户端应用程序验证用户身份.我观看了网站上的所有视频,并阅读了此论坛帖子.
[Authorize]正确放置属性会返回401 Unauthorized状态.但是,我需要知道如何允许用户登录API.
[Authorize]
401 Unauthorized
我想从Android应用程序向API提供用户凭据,让用户登录,然后对所有后续API调用进行预先验证.
.net authentication android asp.net-web-api
.net ×1
android ×1
asp.net-web-api ×1
authentication ×1