Make Devise find the strategy class automatically

Since we're already setting `wordpress_oauth2` using the `option :name`
command in the `OmniAuth::Strategies::Wordpress` class, Devise can
automatically find the strategy. However, it wasn't working because we
were passing a string instead of a symbol.
This commit is contained in:
Javi Martín
2024-03-29 00:59:13 +01:00
parent d8faa4f4d0
commit 1cf529b134
2 changed files with 1 additions and 2 deletions

View File

@@ -284,7 +284,6 @@ Devise.setup do |config|
config.omniauth :wordpress_oauth2,
Rails.application.secrets.wordpress_oauth2_key,
Rails.application.secrets.wordpress_oauth2_secret,
strategy_class: OmniAuth::Strategies::Wordpress,
client_options: { site: Rails.application.secrets.wordpress_oauth2_site },
setup: OmniauthTenantSetup.wordpress_oauth2