Basic question is do we need to run our war as ROOT.war to get the context path correct with spring security?
Background:
We have a grails application that is using spring security plugin. It is proxied by nginx and the war is NOT running as ROOT.war in tomcat.
Web site: https://www.example.com
Login: https://www.example.com/login
War name is foo.war and nginx is proxying requests to http://tomcat:8080/foo
Spring security is using: ${request.contextPath}
Do we install the app as a ROOT.war or is there a context path variable in grails spring security that we can modify?
The spring security auth cookies are being set with /foo in the path ... and our session management in not working correctly.