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

Upgrade Ueberauth and Refactor CSRF State Logic #82

Merged
merged 2 commits into from
Jul 15, 2021

Conversation

greg-rychlewski
Copy link

@greg-rychlewski greg-rychlewski commented Jul 15, 2021

Ueberauth 0.7.0 introduces automatic CSFR attack protection: ueberauth/ueberauth#136. This conflicts with the current way that this library fetches the CSRF state parameter.

Ueberauth exposes helper functions to pull the state param from the correct location: https://hexdocs.pm/ueberauth/Ueberauth.Strategy.Helpers.html#with_state_param/2. I've replaced the current method with this helper.

I've also updated some of the tests to be compatible with the new CSRF protection.

@yordis
Copy link
Member

yordis commented Jul 15, 2021

Thank you so much for the support! Appreciate!

@yordis yordis merged commit dea2497 into ueberauth:master Jul 15, 2021
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.

2 participants