Missing scope error on Google authentication callback using Node.js/Passport
I take it you are using the Passport Google OAuth, not just the Passport Google (OpenId) module?
If you are using the OAuth passport, the authentication with Google requires an extra scope parameter.
Pass as a string, you must pass 'openid' as the 1st word, eg:For example, if you wanted per-file access to a user’s Google Drive,
openid profile email https://www.googleapis.com/auth/drive.file
Source(s):
https://developers.google.com/identity/protocols/OpenIDConnect#scope-paramhttps://developers.google.com/+/api/oauth#login-scopes
For error message
Error 400Error: invalid_requestMissing required parameter: scope
You need to add scopes in your form
<input type="hidden" name="scope" value="https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo#email https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/tasks https://www-opensocial.googleusercontent.com/api/people https://www.googleapis.com/auth/plus.login" />
Please refer spring social login with linkedin,facebook,twitter and google providers example application.