Spring and middleware conflict?

后端 未结 5 1919
余生分开走
余生分开走 2020-12-18 08:11

I\'m trying to add oauth2 with Google, following these instructions.

I\'m receiving the following error message starting the server:

Exiting
You\'ve          


        
5条回答
  •  隐瞒了意图╮
    2020-12-18 08:43

    Check config/initializers/omniauth.rb file and ensure that you have following content:

    Rails.application.config.middleware.use OmniAuth::Builder do
      provider :google, 'Client_Id', 'Client_Secret'
    end
    

    ensure that you exactly have the google provider (not github or facebook)

提交回复
热议问题