.ASPXAUTH cookie干扰RP代码 [英] .ASPXAUTH cookie interferes with RP code

查看:70
本文介绍了.ASPXAUTH cookie干扰RP代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试设置一个应用程序,该应用程序目前使用一些自定义表单身份验证来使用STS。我们自己编写cookie信息,使用默认的表单cookie名称.ASPXAUTH。


应用程序中有很多东西依赖于默认表单中登录用户的信息身份验证cookie。


我已经设置了一个非常基本的STS,在安装WIF SDK后使用VS中的内置工具。


经过大量的讨论,我意识到STS正在编写一个同名的cookie,应用程序中的一些现有代码因为当我从STS回到我的应用程序时,cookie已经变得混乱了那里。是否有任何方式
更改STS写的cookie的名称?

解决方案

你的意思是自定义STS?好吧 - 我想在web.config中 - < authentication mode =" Forms" < forms name =" ..." />

Hi,

I'm trying to set up an app which currently uses some customised forms authentication to use an STS. We write the cookie information ourselves, using the default forms cookie name .ASPXAUTH.

There's a lot of things in the app which rely on the information about the logged in user being in the default forms authentication cookie.

I've set up a very basic STS uses the built-in tools in VS following an install of the WIF SDK.

After a lot of messing around, I realised that the STS is writing a cookie with the same name, and some existing code in the app is getting confused by the fact that when I come back to my app from the STS, the cookie is already there. Is there any way of changing the name of the cookie the STS writes?

解决方案

You mean a custom STS? Well - i guess in web.config - <authentication mode="Forms" <forms name="..." />.


这篇关于.ASPXAUTH cookie干扰RP代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆