use HTTPS for specific actions in grails

19 views
Skip to first unread message

Sherif Shehab

unread,
Jan 20, 2016, 7:03:18 PM1/20/16
to Grails Dev Discuss

H,


I'm using spring-security-core:2.0-RC5 Grails plugin , i searched on how to force the browser to use HTTPS on specific application's pages i found the below configuration :

grails.plugin.springsecurity.auth.forceHttps = true
 grails.plugin.springsecurity.secureChannel.definition = [
 '/login/**':         'REQUIRES_SECURE_CHANNEL'
  ]

when i apply this in the config, and try access the login page, it shows me this page can't be displayed , and the protocol is still HTTP ,i know there is a way to run the whole application onHTTPS by using grails run-app -https but what i need to achieve is to force some pages to use HTTPS , is there a way to make this ?


Thanks

Reply all
Reply to author
Forward
0 new messages