Using Spring Security Plugin with Grails Without a Domain Model

We use Grails, but with an existing model layer and a DAO layer. We have an application written already in Spring MVC, using Spring for IoC, as well as for security. I am trying to pass control and take a look at Grails as proof of concept. I have Grails working fine with IoC, but I'm having trouble getting Grails to work with Spring Security. I am using 0.5.1 Spring Security Plugin for grails. I have an xml file with all Spring security settings that work fine with Spring MVC application, but I am having problems working with Grails. If anyone has experience using Grails with Spring Security, but not using the domain part of the Spring Security plugin, then please let me know. Any tips, websites, etc. Will be helpful.

+3
source share
1 answer

You don’t even need the Grails Spring security module,

You can integrate Spring Security 3 directly into Grails like all of Spring under the hood in any way.

You only need to place the security banks in the lib folder, add two entries in web.xml and copy securityContext on top of your application

This way you can use existing Spring Security in your grails project

It worked for me.

http://old.nabble.com/Baked-Beans%3A-Securing-Grails-with-Spring-Security-3!-td25339938.html#a25339938

http://blog.jayway.com/2009/11/23/spring-security-for-real-with-grails/comment-page-1

http://knol.google.com/k/grails-with-spring-security#

+2
source

Source: https://habr.com/ru/post/1711075/


All Articles