I am new to Groovy and Grails. I have developed an application using the Spring Security plugin using a database requested request map. I want a custom redirection to the home pages after logout according to the roles.
If the user is ROLE_ADMIN, after logout he would be redirected to his home page in views adminUser/Homepage.gsp
If the user is ROLE_USER, after logout he would be redirected to his home page in views User/Homepage.gsp
I am not able to get any custom authentication redirection according to the user role.