Merge pull request #5508 from Edouard-chin/ec-omniauth-allowed-methods

Use Omniauth.allowed_methods' as routing verbs for the auth path:
This commit is contained in:
Rafael Mendonça França
2023-06-09 19:50:07 -04:00
committed by GitHub
2 changed files with 23 additions and 1 deletions

View File

@@ -447,7 +447,7 @@ ERROR
match "#{path_prefix}/#{provider}",
to: "#{controllers[:omniauth_callbacks]}#passthru",
as: "#{provider}_omniauth_authorize",
via: [:get, :post]
via: OmniAuth.config.allowed_request_methods
match "#{path_prefix}/#{provider}/callback",
to: "#{controllers[:omniauth_callbacks]}##{provider}",