Skip to content
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

Preserve custom state after redirect #30

Open
bendavis78 opened this issue May 16, 2022 · 1 comment
Open

Preserve custom state after redirect #30

bendavis78 opened this issue May 16, 2022 · 1 comment

Comments

@bendavis78
Copy link

I need to preserve state after redirecting (eg, using a custom parameter), but it seems the state parameter is currently only used for CSRF token. Is there another way to preserve state?

@indepndnt
Copy link

I don't believe the state parameter is limited to CSRF token, so you could encode a CSRF token and other state data into the state parameter.

Better, if there's any non-public data in the state that you want to preserve, would be to store it locally associated with the CSRF token and retrieve it after verifying the CSRF token. IIRC I store the CSRF token as a Redis key with the state for the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants