Skip to content

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