根据我的部署架构,oAuth2服务器使用http协议运行。使用https协议向F5交换机发出客户端请求,F5交换机将使用http协议将此调用转发给oAuth2。没关系,我可以从oAuth2服务器获得登录页面。但是问题是当使用http协议执行登录oAuth2重定向时,应该是https协议。
例如: Goto登录页面url是: Request:https://192.144.80.117:10900/authentication-service-provider-1.0/login
结果:获取登录页面
提供登录信息(用于测试目的的错误凭据)并单击submit。它应该返回:https://192.144.80.117:10900/authentication-service-provider-1.0/login?error
但是它回来了:http://192.144.80.117:10900/authentication-service-provider-1.0/login?error


发布于 2018-12-19 16:31:26
我有一个类似的问题,我能够通过设置
server:
use-forward-headers: true在我的applications.yml里。
供参考:
https://stackoverflow.com/questions/53854520
复制相似问题