我们的应用配置了blazeds和spring-security,并使用remoting-object标签来调用方法。我感觉配置不合适。是否有任何参考资料可以让我了解所有这三种技术的集成。
我实际上面临的问题是在登录后浏览器工具(Chrome 的检查元素)中看到的 sesionid 发生变化,其中 spring-security 说一旦用户通过身份验证,会话 id 就会发生变化。
<flex:message-broker>
<flex:remoting-service default-channels="my-cfamf-secure" />
<flex:secured>
<flex:secured-channel channel="my-cfamf-secure"
access="ROLE_USER,ROLE_ADMIN,ROLE_SALES" />
<flex:secured-endpoint-path pattern="**/messagebroker/**" access="ROLE_USER" />
</flex:secured>
</flex:message-broker>`
<security:http auto-config="true">
<security:intercept-url pattern="/index.jsp"
filters="none" access="ROLE_USER" />
<security:intercept-url pattern="/**/*.swf"
filters="none" />
<security:intercept-url pattern="/**/*.jsp"
filters="none" access="ROLE_USER" />
<security:intercept-url pattern="/**" filters="none" />
<security:logout invalidate-session="true"
logout-success-url="/index.jsp" />
<security:session-management session-fixation-protection="newSession">
</security:session-management>
</security:http>
<security:authentication-manager alias="_authenticationManager">
<security:authentication-provider
user-service-ref="userDetailsService">
<security:password-encoder hash="md5" />
</security:authentication-provider>
</security:authentication-manager>
<channel-definition id="my-cfamf-secure"
class="mx.messaging.channels.SecureAMFChannel">
<endpoint
url="https://{server.name}:{server.port}/{context.root}/messagebroker/amf/cfamfsecure"
class="flex.messaging.endpoints.SecureAMFEndpoint" />
<properties>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>true</instantiate-types>
</serialization>
<add-no-cache-headers>false</add-no-cache-headers>
<invalidate-session-on-disconnect>true</invalidate-session-on-disconnect>
</properties>
</channel-definition>
这是我的配置