I have a Grails app in STS 3.1 with a REST API laid out in UrlMappings.groovy and a group of controllers. I installed the SpringSecurity stuff so I have Login/Logout controllers and RegistrationCodeController etc. I have been using the browser interface to login but I need to start logging in from a REST client.
What are the specific urls and requests I need to use to register / login / check logged in / logout?
I have been able to login by POSTing j_username and j_password to /j_spring_security_check. But, if I first make a request which fails authentication, then POSTing to /j_spring_security_check automatically returns the results of the initial, failed request. I need a way to login that always returns success/error status and User.id on success.