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
gem 'devise' (4.8.1 in Gemfile.lock)
gem 'omniauth-facebook'
gem 'omniauth-twitter'
gem "omniauth-rails_csrf_protection", "~> 1.0"
link_to for CSRF with POST, previously GET
Current behavior
Upgraded Rails to 6 along with devise.
After updating for this CSRF error #5236 arrived at:
Started POST "/users/auth/twitter" for ::1 at 2022-09-22 21:24:44 -0400
(twitter) Request phase initiated.
(twitter) Authentication failure! undefined method `downcase' for nil:NilClass
"#{u.scheme.downcase}://#{u.host.downcase}#{(u.scheme.casecmp("http").zero? && u.port != 80) || (u.scheme.casecmp("https").zero? && u.port != 443) ? ":#{u.port}" : ""}#{u.path && u.path != "" ? u.path : "/"}"
^^^^^^^^^: NoMethodError, undefined method `downcase' for nil:NilClass
Processing by Users::OmniauthCallbacksController#failure as HTML
Environment
Gemfile:
ruby "3.1.0"
gem 'rails', '6.0.3.1'
gem 'devise' (4.8.1 in Gemfile.lock)
gem 'omniauth-facebook'
gem 'omniauth-twitter'
gem "omniauth-rails_csrf_protection", "~> 1.0"
link_to for CSRF with POST, previously GET
Current behavior
Upgraded Rails to 6 along with devise.
After updating for this CSRF error #5236 arrived at:
In omniauth.rb
The line of code that errors our seems to be defined here https://rubydoc.info/gems/oauth/0.5.5/OAuth%2FRequestProxy%2FBase:normalized_uri
Expected behavior
I used to be able to login with twitter oauth before this, looking for same
The text was updated successfully, but these errors were encountered: