Quantcast

use HTTPS for specific actions in grails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

use HTTPS for specific actions in grails

sshehab

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

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/3cf19892-a8fd-4166-a31f-2b58c6dad971%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Sherif
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: use HTTPS for specific actions in grails

sw112
This post has NOT been accepted by the mailing list yet.
This is a late reply, but for future users who have a similar question, this plugin might be what you need:

https://grails.org/plugin/force-ssl
Loading...