Reputation: 121
Hi I am trying to integrate devise and omniauth login on my app. I am trying with omniauth-google-oauth2 and I follow the instrunctions on this tutorial https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview
I do it all but I keep getting a google error message
Error: invalid_request
Missing required parameter: client_id
Learn more
Request Details
response_type=code
scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
redirect_uri=http://localhost:3000/users/auth/google_oauth2/callback
access_type=offline
approval_prompt=
state=50665ea3f96dc12e2189e93e1bc40592fc35ce5167d462e0
client_id=
Can anybody help me?
Upvotes: 1
Views: 4233
Reputation: 121
@Baldrick's answer helped me solve it.
Make sure that
config.omniauth :google_oauth2, "APP_ID", "APP_SECRET", { access_type: "offline", approval_prompt: "" }
is correctly set
Upvotes: 5