-
-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When Authorize should state check in session? #531
Comments
in 363, when concurrent oauth2_authorize and callback hasent been processed yet, state will be cover in next request. |
(I am writing this from memory, sorry for not being precise in the terminology.) There are two types of requests:
Regarding the full-auth refresh using the
This will not help, for parallel requests from the same browser you initially have no session (or existing session) and at the end you have several conflicting session updates coming to the browser together with the auth redirection. You cannot prevent them unless you want to introduce some kind of thread locks on the Nginx side. Also, each request to the OAuth2 provider should be unique (together with unique But there is still a chance (a hack actually). You need to introduce a separate
Thats it. I am using this hack and it somehow works 😉 Edit: updated description |
Oh, got, You mean the state could store in session attribute(or other durable session method), rather than in request attribute. When state has already in session attribute, load it. When session has not state, generate it? @oldium |
I do not know what you mean by “session attribute”. I know about And I am not talking about generating missing data. I am talking about a storage of auth-specific session keys into a separate storage (like into Redis, but it could be stored in a cookie with per-state-value name). And please note that this hack is very advanced and uses internals of |
Question
When state will be set in session, should check session has already exists state
Expected
When state has already in session, use it
When state not in session, generate a new and set in session
The text was updated successfully, but these errors were encountered: