I want my application to work exclusively with SSL enabled. I am using Spring Security core plugin.
This is how I try to do it in Config.groovy
:
grails.plugins.springsecurity.portMapper.httpPort = 8080 grails.plugins.springsecurity.portMapper.httpsPort = 8443 grails.plugins.springsecurity.secureChannel.definition = [ '/**' : 'REQUIRES_SECURE_CHANNEL']
I expected this to cause redirects every time I try to access Url using HTTP. However, I never redirect and can navigate through HTTP and HTTPS. I can add that I run my application using grails run-app -https
Have I really misunderstood all this?
Any suggestion is welcome.
source share