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

Improve state passing #11

Open
dltn opened this issue Feb 16, 2021 · 3 comments
Open

Improve state passing #11

dltn opened this issue Feb 16, 2021 · 3 comments
Labels
Type: Maintainance Code maintainance

Comments

@dltn
Copy link
Contributor

dltn commented Feb 16, 2021

Form options (CSV/JSON) are currently passed through the OAuth state string parameter. This complicates passing state and is nonstandard. Instead, we should be storing this state locally with the state token as a key (and ideally validating the request):

If state is used for carrying application state, and integrity of its contents is a concern, clients MUST protect state against tampering and swapping. This can be achieved by binding the contents of state to the browser session and/or signed/encrypted state values

See:

@darekkay
Copy link
Owner

Thank for the issue, I totally agree. The code is from 7 years ago and I remember having issues with passing the state around and my hack/workaround to solve it.

@darekkay darekkay added the Type: Maintainance Code maintainance label Feb 16, 2021
@dltn
Copy link
Contributor Author

dltn commented Jun 27, 2023

Merged to production via #9 (comment)

@dltn dltn closed this as completed Jun 27, 2023
@darekkay
Copy link
Owner

darekkay commented Jul 1, 2023

@dltn This improvement ticket hasn't been tackled in #9 afaik. From your comment:

This PR encodes the archive option in the existing "format string" – which isn't ideal, but minimizes the changes needed to keep compatibility. I don't want to bloat this PR further, so I created #11 to track this.

I'm currently not planning to work on this (prioritizing other projects), but I'm fine with keeping valid tickets open.

@darekkay darekkay reopened this Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Maintainance Code maintainance
Projects
None yet
Development

No branches or pull requests

2 participants