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

OAuth2: enable state parameter by default #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xi
Copy link

@xi xi commented Jan 7, 2025

As a first, simple step to fix #161, I propose to enable the state parameter by default. In contrast to nonce and code_challenge, it is already implemented in lusitanian/oauth.

state is also the oldest and well established mechanism of the three, so I expect that most providers support it. If any provider does not support it, it can be disabled again by overwriting Service.needsStateParameterInAuthUrl().

I understand that this is a breaking change, but I think offering secure defaults is worth it.

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.

Missing CSRF protection
1 participant