Update to Omniauth 2.x

This requires converting all use of the /auth endpoints
to use the POST method as GET is no longer supported.
This commit is contained in:
Tom Hughes 2021-02-02 19:34:05 +00:00
parent cea93e7244
commit 5912a8011b
9 changed files with 63 additions and 54 deletions

View file

@ -173,7 +173,7 @@ OpenStreetMap::Application.routes.draw do
# omniauth
get "/auth/failure" => "users#auth_failure"
match "/auth/:provider/callback" => "users#auth_success", :via => [:get, :post], :as => :auth_success
match "/auth/:provider" => "users#auth", :via => [:get, :post], :as => :auth
post "/auth/:provider" => "users#auth", :as => :auth
# permalink
get "/go/:code" => "site#permalink", :code => /[a-zA-Z0-9_@~]+[=-]*/, :as => :permalink