You should have a look at this project :
http://code.google.com/p/gwt-incubator-lib
There is a dedicated part for Spring Security integration using GWT-SL
Printable View
You should have a look at this project :
http://code.google.com/p/gwt-incubator-lib
There is a dedicated part for Spring Security integration using GWT-SL
Do any one have a working sample of gwt-incubator-lib ?
Hi Delirii,
Thanks for your reply.
I am trying to implement Spring security in simple Greetings RPC application. I am getting struck with the login page and how the roles is being propogated from client side.
Here are my questions
1. What configurations you do in client side, inorder to get the role propogated?
2. Are we going to add spring security related configuration in web.xml file?
WOuld be nice if you can point me to a implemented sample.
Thanks
gwt-incubator-lib does not work with GWT 1.7 it seams...
Second that. I was not able to get gwt-incubator-security-1.0.0-SNAPSHOT working with gwt 1.7.0
It seems that all RPC calls try to call my service methods on the wrong object:
The getItem() method is actually defined in my RPC service interface and implementation and works fine when I remove gwt-incubator-security.Code:SEVERE: Exception while dispatching incoming RPC call
java.lang.RuntimeException: java.lang.NoSuchMethodException: org.gwtwidgets.server.spring.hb4gwt.HB4GWTRPCServiceExporter.getItem()
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException(spring:GWTRPCServiceExporter.java):344)
at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(spring:GWTRPCServiceExporter.java):313)
...
My environment:
Windows XP
GWT 1.7.0
Spring 2.5.6
SpringSecurity 2.0.4
Did anyone manage to get method level security working with GWT 1.7? Would love to see a working example...
Thanks,
Steve
I am currently using
- GWT 1.7
- gwt-incubator-lib
- EXT-GWT 2
And noticed the following exception is being thrown when using GWTSecuredHandler:
This does not occur when using the GWTHandler.Code:[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Type 'com.extjs.gxt.ui.client.data.BasePagingLoadConfig' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer. For security purposes, this type will not be deserialized.
It seems that gwt-incubator-lib is not really usable at this stage. Is there no other alternative?
GWT incubator security lib has been updated to work with GWT 1.7.
I'll give it a try.
I do not use Gilaed in my case, nor GWT Ext, it may help.
I think you're right. Gilead is what seems to cause the problem I'm facing:
The gwt-incubator-security uses GWTRPCServiceExporter by default, whereas my RPC services are managed by HB4GWTRPCServiceExporter.
I will try to replace GWTRPCServiceExporter references by HB4GWTRPCServiceExporter in the gwt-incubator-security code. If that doesn't work I will simply create a merged class which does the job of both :/
If anyone has a smarter solution please feel free to share.