I'm looking to add some security to my small service written on Grails: restriction by IP, force HTTPS and maybe something more later.
So I've added spring-security-core dependency
compile 'org.grails.plugins:spring-security-core:2.0-RC4'
to my build.gradle and something like this
grails.plugin.springsecurity.secureChannel.definition = ['/**': 'REQUIRES_SECURE_CHANNEL']
grails.plugin.springsecurity.ipRestrictions = ['/**': ['127.0.0.1', '%MY-OFFICE-IP-HERE%']]
to my Config.groovy.
Service is quite simple, it only has two controllers that return some data in JSON format. But spring-security-core plugin by default adds user authentication: login page, logout interceptor, access denied handler and so on. I don't need such functionality at this time and want to disable it. How can I do it?