You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading omniauth to latest, this example script stopped working due to csrf verification failure, even after switching the CSRF backend to rack_csrf. After some investigation I found out that the problem came from the backend used for csrf token verification in rack-protection not being compatible with rack_csrf.
Actual Behavior
While it's probably unreasonable to expect rack-protection to change default settings which may cause other software to break, perhaps it should be on omniauth side to document somewhere how to patch the request_validation_phase callback, at least for the most used CSRF backend outside of rails (which requires another full gem just to set the callback).
If you'd like to add it to the wiki, it's open to contributions. While I do my best, I unfortunately can't account for every use case and framework, we try to be as framework agnostic as possible, so that's why Rails has a separate gem to help with setting it, since it's not entirely straightforward
I think I can add smth once I'm done with it on my side. Is the wiki open for editing from anyone? Or do I have to be part of the omniauth organisation?
Activity
BobbyMcWho commentedon May 10, 2022
If you'd like to add it to the wiki, it's open to contributions. While I do my best, I unfortunately can't account for every use case and framework, we try to be as framework agnostic as possible, so that's why Rails has a separate gem to help with setting it, since it's not entirely straightforward
HoneyryderChuck commentedon May 11, 2022
I think I can add smth once I'm done with it on my side. Is the wiki open for editing from anyone? Or do I have to be part of the omniauth organisation?
Added docs showing how to integrate omniauth with rack_csrf