AuthenticationService.Authenticating
将 e.isAuthenticated 设置为 true 足以设置表单身份验证 cookie 吗?
这是在 wcf 身份验证服务的 AuthenticationService.Authenticating 事件中。
Will setting e.isAuthenticated to true be enough to set the forms authentication cookie?
this is in the AuthenticationService.Authenticating event of the wcf authentication service.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,我最近刚刚测试了这个场景,并使用 fiddler 查看标题显示
Set-Cookie:存在 .ASPXAUTH=
标头变量。另一种测试方法是为 CreatingCookie 事件,在创建身份验证 cookie 时发生。Yes, I've just recently tested this scenario and using fiddler to view the headers showed that the
Set-Cookie: .ASPXAUTH=
header variable was present. Another way to test is to add an event handler for the CreatingCookie event, which occurs when the authentication cookie is being created.