I was wondering is there any valid reason why omniauth-rails_csrf_protection is not compatible with the versions of Rails below 4.2? Are there some functionalities in Rails 4.2+ that are crucial for this gem to work, and hence can't be used with lower versions of Rails?
I would like to use omniauth-rails_csrf_protection with Rails 4.0 app. But it is not compatible.
I found the reason. So, it's the code from actionpack 4.2.0 that is used to make the
omniauth-rails_csrf_protectiongem work. In the token_verifier.rb a methodverified_request?is called which is implemented in actionpack. But it was modified in actionpack 4.2.0, henceomniauth-rails_csrf_protectiongem won't work with Rails version below 4.2.0.