These are chat archives for alvarosanchez/spring-security-rest

13th
Oct 2014
Aaron Eischeid
@aeischeid
Oct 13 2014 19:10
having this in my url mappings :
name api1: "/api/$controller"{
action = [GET: "list", POST: "save"]
format = "json"
}
might be causing my issue, but I not sure what to put in there instead to handle the default login, logout and, verify paths
as it is I am getting a hard to understand infinite loop when I try to login.
any thoughts?
Aaron Eischeid
@aeischeid
Oct 13 2014 20:19
hmmm, changed grails.plugin.springsecurity.rest.login.endpointUrl = '/api/gettoken' to avoid the loginController I had in place from springSecurityUI, now the error happens at api/gettoken and api/login works as it did bfore. but still not sure how to get this token plugin working.
a bit from the stacktrace that seemed relevant:
javax.servlet.ServletException: Servlet execution threw an exception
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
at com.odobo.grails.plugin.springsecurity.rest.RestAuthenticationFilter.doFilter(RestAuthenticationFilter.groovy:108)
at grails.plugin.springsecurity.web.authentication.RequestHolderAuthenticationFilter.doFilter(RequestHolderAuthenticationFilter.java:49)
at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:82)
at com.odobo.grails.plugin.springsecurity.rest.RestLogoutFilter.doFilter(RestLogoutFilter.groovy:63)
at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
I am trying to track this down through the source, but so far not figuring much out
Aaron Eischeid
@aeischeid
Oct 13 2014 21:16
okay, think I figured this out. didn't have my full package path for the GORM domain class. only had the domainClass name. AuthToken instead of com.my.path.AuthToken