【发布时间】:2014-02-01 17:16:33
【问题描述】:
我有一个网络应用程序,其中包含浏览器提供的 JavaScript 应用程序和 Android 手机应用程序使用的服务。
javascript 应用程序使用 System.IdentityModel.SessionAuthenticationModule cookie 进行身份验证,移动应用程序在 Authentication 标头中使用 JWT 令牌。
我可以将应用程序配置为使用 System.IdentityModel.SessionAuthenticationModule 和 cookie 工作,或者 thinktecture AuthorizationHandler 和令牌工作,但我不知道如何让它们同时工作?
这个答案Thinktecture IdentityModel AuthenticationConfiguration Mapping for Cookie - how? 表明这是不可能的,但它似乎使用的是自定义 cookie 而不是FederatedAuthentication.SessionAuthenticationModule.WriteSessionTokenToCookie(token);
【问题讨论】:
标签: asp.net-web-api wif thinktecture-ident-model