开发者

Flex 4 & Spring 3 Integration (BlazeDS) (Refcardz): @Secured not working

开发者 https://www.devze.com 2023-01-11 00:39 出处:网络
Please be gentle on the quasiNoob(expert w/Flex & Actionscript, != expert w/Spring) ! I am on Mac Snow Leopard and using STS 2.3.2 Release w/the Flash Builder 4 plugin and tomcat 6.

Please be gentle on the quasiNoob(expert w/Flex & Actionscript, != expert w/Spring) !

I am on Mac Snow Leopard and using STS 2.3.2 Release w/the Flash Builder 4 plugin and tomcat 6.

Everything works except for the security exclusion using the Spring @Secured annotation in the java class: When I am not logged in, I can enter messages through the sayHello Flex UI and see them post on the server & get the reply back. I should be getting an error instead.

I开发者_高级运维 have worked through all the Refcardz 'Flex 4 & Spring 3 Integration': http://refcardz.dzone.com/refcardz/flex-4-and-spring-3. It was great, especially in explicitly calling out dependencies.

It even returns a 'Bad credentials' error message if I try to log in with the wrong userid/password.

I have copied all the code from the Refcard, so I don't think it would be useful to paste loads of code here.

Any advice is most appreciated.

Thanks!

wT

===================================

8/12/10: 1. removed/re-added the flexspring app 2. clean/republish to Tomcat 3. re-booted

Still not rejecting messages from unauthenticated user


Did you add the filters to the web.xml file?

<filter>
  <filter-name>springSecurityFilterChain</filter-name>
  <filter-class>
  org.springframework.web.filter.DelegatingFilterProxy
  </filter-class>
</filter>
<filter-mapping>
  <filter-name>springSecurityFilterChain</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>
0

精彩评论

暂无评论...
验证码 换一张
取 消