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

Pass and verify a JWT token in the state parameter #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Tschonti
Copy link
Member

@Tschonti Tschonti commented Dec 21, 2024

This should defend against CSRF attacks, but honestly, I don't understand them fully, so I'm not 100% sure this prevents anything. I'm also not 100% sure that it won't cause problems for some users. so this needs review and testing with more real users.

This had to be a major update because the new JWT needs a secret, and I didn't want to use the AuthSCH secret. Also removed a few types that are only used internally (hopefully) from the exports.

https://www.rfc-editor.org/rfc/rfc6749#section-10.12

@Tschonti
Copy link
Member Author

Tschonti commented Jan 4, 2025

ping

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

Successfully merging this pull request may close these issues.

1 participant