我需要使用OWIN承载令牌和JWT实现angularjs基于单页应用程序角色的身份验证 . 但我有单独的Web服务来检查用户是否可用,并获得用户角色 .
因为我需要通过使用该休息资源结果而不使用Identity数据库来生成承载令牌 .
我发现这个教程非常有用:
http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/
1 回答
我发现这个教程非常有用:
http://bitoftech.net/2015/03/31/asp-net-web-api-claims-authorization-with-asp-net-identity-2-1/