Zuul Spring Security oauth2将URL重定向到http而不是https

时间:2020-11-11 23:14:19

标签: netflix-zuul spring-boot-starter-security spring-boot-starter-oauth2-client

成功进行OAuth2身份验证后,对https://inventory.com/orders?orderId=123的初始请求将重定向到http://inventory.com/orders?orderId=123

在日志中,我们有

2020-11-11 15:16:27.785调试1 --- [nio-8091-exec-1] osswsHttpSessionRequestCache:将DefaultSavedRequest添加到会话中:DefaultSavedRequest [http://inventory.com/orders?orderId=123 ]

-成功的OAuth身份验证

2020-11-11 15:16:41.823调试1 --- [nio-8091-exec-2] RequestAwareAuthenticationSuccessHandler:重定向到DefaultSavedRequest网址:http://inventory.com/orders?orderId=123

2020-11-11 15:16:41.824调试1 --- [nio-8091-exec-2] ossweb.DefaultRedirectStrategy:重定向到'http://inventory.com/orders?orderId=123'< / p>

我将Zuul作为API网关,并在同一API上使用OAuth2客户端

0 个答案:

没有答案
相关问题