在CloudFoundry上使用HTTPS的Spring Security [英] Spring Security with HTTPS on CloudFoundry

查看:108
本文介绍了在CloudFoundry上使用HTTPS的Spring Security的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在Spring Security xml中使用以下配置访问CloudFoundry上的应用程序

 <拦截网址模式= / signup * access = permitAll require-channel = https /> 

但这给了我错误此网页具有重定向循环



但是,当我将其更改为 requires-channel = http 时,我可以正常看到我的页面。在这两种情况下,我都在应用程序上使用 https 。这是预期的行为吗?

解决方案

当我尝试使用Spring Security使用HTTPS保护页面时,我遇到了相同的问题。 / p>

从CloudFoundry支持的讨论来看,它们似乎终止了路由器的SSL连接。请参阅 是否已可以通过SSL(HTTPS)访问我的应用程序吗?



一年多之后,我找不到有关此问题的更多信息。 / p>

I tried to access my application on CloudFoundry with the following configuration in the spring security xml

<intercept-url pattern="/signup*" access="permitAll" requires-channel="https" />

but it gives me error This webpage has a redirect loop

However when I changed it to requires-channel="http" I can see my page normally. In both cases I used https on my application. Is this the expected behavior ?

解决方案

I have the same issue when I tried to secure my pages with HTTPS using Spring Security.

From the discussion on CloudFoundry Support, seems they "terminate SSL connections at the router". See "Is it possible to visit my application via SSL (HTTPS)?".

And after more than a year, no further information I can find regarding this issue.

这篇关于在CloudFoundry上使用HTTPS的Spring Security的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆