【发布时间】:2020-02-07 22:45:12
【问题描述】:
我将 OAuth2 登录表单前端更改为后端实现。 OAuth2Login 是使用 spring 安全配置设置的。 一切都在本地机器上运行。
但在服务器上它不再创建会话 Cookie。我猜这会产生以下异常:
org.springframework.security.oauth2.core.OAuth2AuthenticationException: [authorization_request_not_found]
at org.springframework.security.oauth2.client.web.OAuth2LoginAuthenticationFilter.attemptAuthentication(OAuth2LoginAuthenticationFilter.java:165) ~[spring-security-oauth2-client-5.1.2.RELEASE.jar!/:5.1.2.RELEASE]
【问题讨论】: