【发布时间】:2014-06-19 09:25:44
【问题描述】:
我有一个具有 Identity 2 安全性的 Web Api 应用程序。我可以登录并获得带有不记名令牌的响应,例如
{"access_token":"wiYvAyIgGggCmBBR36VwWZ[more...]",
"token_type":"bearer","expires_in":1209599,
"userName":"Ezeqiel",".issued":"Fri, 02 May 2014 15:23:27 GMT",
".expires":"Fri, 16 May 2014 15:23:27 GMT" }
问题是如何将此令牌发送到未来的请求,以及如何在用户未通过身份验证时重定向到登录页面。
【问题讨论】:
标签: asp.net login asp.net-web-api asp.net-identity bearer-token