【发布时间】:2017-05-06 18:29:20
【问题描述】:
我正在研究将 IdentityServer4 与 ASP.NET WebAPI、Angular 等一起使用。
在大多数带有 Javascript 客户端的 OAuth 2 示例中,我看到访问令牌存储在本地存储或会话存储中。我还阅读了他们认为这是一个坏主意的帖子,例如这两个:https://stormpath.com/blog/where-to-store-your-jwts-cookies-vs-html5-web-storage 和 http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/。
是否有任何方法可以将 cookie 用于 API,就像帖子中提到的那样,与 IdentityServer 一起使用?
【问题讨论】:
标签: angular oauth-2.0 identityserver3 openid-connect identityserver4