Fre*_*mmi 6 spring spring-security
即使在指定create-session="stateless"spring 之后创建了JSESSIONID cookie并将其写入浏览器缓存.我的理解是; 如果我们提到它作为无状态弹簧不会添加任何东西到会话.我在这里遗漏了什么或者我的理解错了吗?
我面临的问题是
我在我的应用程序中使用基本身份验证(用于休息服务)和基于表单的身份验证.如果用户登录到firefox,并且他使用基本身份验证使用RestClient调用其余服务,则会在返回其余服务后注销第一个用户.我的目的是让第一个用户会话保持活动状态.请在下面找到我的配置
<http auto-config="false" pattern="/rest/internal/**"
entry-point-ref="headerBasedAuthenticationEntryPoint" create-session="stateless"
disable-url-rewriting="true">
<custom-filter position="BASIC_AUTH_FILTER"
ref="headerBasedAuthenticationFilter" />
</http>
Run Code Online (Sandbox Code Playgroud)
我在RestCLient中获得以下响应头
Status Code: 200 OK
Content-Language: null
Content-Length: 1043
Content-Type: text/html;charset=utf-8
Date: Wed, 19 Nov 2014 10:26:57 GMT
Set-Cookie: JSESSIONID=77C3AC743413C9455CF6FB1EC35F021E; Path=/myApplication/; HttpOnly login=""; Path=/; Secure; HttpOnly userId=4be114d57a3c4d428e3ec9b3cea33463; Expires=Sat, 28-Jul-2046 12:13:37 GMT; Path=/; Secure; HttpOnly lang=en; Expires=Sat, 28-Jul-2046 12:13:37 GMT; Path=/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1719 次 |
| 最近记录: |