Grails remote control plugin - Spring Security Configuration -
whenever try use grails remote control plugin, following exception.
groovyx.remote.remotecontrolexception: error sending command chain 'http://localhost:8080/******/grails-remote-control' [test] @ groovyx.remote.transport.http.httptransport.send(httptransport.groovy:65) [test] @ groovyx.remote.client.remotecontrol.sendcommandchain(remotecontrol.groovy:114) [test] @ groovyx.remote.client.remotecontrol.exec(remotecontrol.groovy:73) [test] @ groovyx.remote.client.remotecontrol.exec(remotecontrol.groovy:67) [test] @ cgw.login.abstractcgwgebspec.msg(abstractcgwgebspec.groovy:35) [test] @ cgw.login.abstractcgwgebspec.login cgw application(abstractcgwgebspec.groovy:25) [test] caused by: java.io.streamcorruptedexception: invalid stream header: 3c68746d [test] @ java.io.objectinputstream.readstreamheader(objectinputstream.java:782) [test] @ java.io.objectinputstream.(objectinputstream.java:279) [test] @ groovyx.remote.util.classloaderconfigurableobjectinputstream.(classloaderconfigurableobjectinputstream.groovy:26) [test] @ groovyx.remote.result.readfrom(result.groovy:150) [test] @ groovyx.remote.transport.http.httptransport.send_closure1(httptransport.groovy:62) [test] @ groovyx.remote.transport.http.httptransport.send(httptransport.groovy:53)
a simple google search reveals due conflict spring security plugin. can see here. unfortunately, cannot find information on how configure without going deep spring security plugin documentation.
how configure spring security core permitall grails-remote-control url?
put below code in config.groovy
grails.plugin.springsecurity.securityconfigtype = 'intercepturlmap' grails.plugin.springsecurity.intercepturlmap = [ '/grails-remote-control/**': ['is_authenticated_anonymously'] ]
Comments
Post a Comment