Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

The OAuth2 client uses multiple instances #1933

Open
929404097 opened this issue Jul 28, 2021 · 1 comment
Open

The OAuth2 client uses multiple instances #1933

929404097 opened this issue Jul 28, 2021 · 1 comment

Comments

@929404097
Copy link

The OAuth2 client uses multiple instances,The OAuth2 Authentication Server uses one instances
I use nginx for forwarding,and then one step is authorization code certification, carrying the state parameters to Authentication Server , he would pass DefaultOAuth2ClientContext stored in the memory map, but you know nginx is polling, such as the first state is stored in the first machine, at the time of taking polling to the second machine, When the state parameter is not found, an exception is reported:
"Possible CSRF detected - state parameter was required but no state could be found"
how can we change the "state "persistence in redis?

Summary

Actual Behavior

Expected Behavior

Successfully complete authentication in cluster mode。

Configuration

Version

spring-security-oauth2-2.3.4.RELEASE

Sample

@929404097
Copy link
Author

@dsyer please give me help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants