You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-sl
Hi
I have added the spring security and gwt-sl in my GWT app. I'm
successful in implementing URL level security but not able to apply
method level security. Can you please help me understand what is wrong
in the following code:
----------------------------------------------
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
I have secured the greetServer method using @Secured("ROLE_ADMIN") but
still i'm able to access the method when i login with "user".
Please help me figure out the issues in the above code
Thanks
Amit Khanna
yes2000
unread,
Mar 15, 2011, 4:12:44 AM3/15/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to gwt-sl
Beacuse the object has @Secured method proxy by aop,
when spring security detect that user is anonymous(not yet login),
ExceptionTranslationFilter direct redirect response to login entry.
otherwise ExceptionTranslationFilter will delegating to
AccessDeniedHandler,
If you had define error-page of access-denied-handler,then response
redirect to then eror page.
or throw a HTTP 403 message,
There is no change to catch by GWTRPCServiceExporter,
You may refer http://code.google.com/p/gwtsecurity/ to see the
solution.