开发者

Acegi, Grails, JBoss, SSL going back and forth from http<>https

开发者 https://www.devze.com 2022-12-21 20:59 出处:网络
I have installed SSL on my server. 开发者_如何学PythonMy question is how can i forcehttps only on selected controllers/pages via the acegi plugin.

I have installed SSL on my server. 开发者_如何学PythonMy question is how can i forcehttps only on selected controllers/pages via the acegi plugin.

Acegi plugin supports a property forcehttps, which when set to true makes all the pages secured once the user logs in. I want to change this behaviour where once the users log off, they should be redirected to the unsecure page. So in essence http>https>http.

Thanks, WB


forceHttps only forces the login page to use SSL. After that the links are relative, so the user will continue to use SSL but it's not required.

If you want fine-grained control over which URLs use SSL and which don't, see the 'Channel security' section of http://www.grails.org/AcegiSecurity+Plugin+-+Customizing+with+SecurityConfig

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号