Tuesday, September 9, 2014

The webpage has redirect loop . Grails Spring Security Core RC4 error

Here while installing and implementing new Spring Security Core RC4 i faced following problems:


and in console 

In console you will see that it will not find SecRoleSecUser table and webpage will get looped :

 If you are using requestmap to handle your access level you have to place following
code in bootstrap.groovy

 new Requestmap(url: '/home', configAttribute: 'ROLE_ADMIN').save()
        new Requestmap(url: '/*', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save();
        new Requestmap(url: '/logout/**', configAttribute: 'IS_AUTHENTICATED_REMEMBERED,IS_AUTHENTICATED_FULLY').save();
        new Requestmap(url: '/login/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save()
        new Requestmap(url: '/index/**', configAttribute: 'IS_AUTHENTICATED_ANONYMOUSLY').save();


0 comments:

Post a Comment