Closed co2nut closed 4 years ago
I have a similar problem. Going to keep an eye on this thread.
This most likely means that flow could not get the profile. First, I recommend to make sure that the configuration is exactly as documented in the Google oAuth cookbook.
@daffl I did tried to follow the configuration, but still no luck.
Google Console:
config/default.js: Find out this info "The scope value must begin with the string openid and then include profile or email or both." and changed accordingly
{
"host": "localhost",
"port": 3030,
"public": "../public/",
"paginate": {
"default": 10,
"max": 50
},
"authentication": {
"entity": "user",
"service": "users",
"secret": "Tecx9BRFvJv7LUSFhLKPTh7Ux8g=",
"authStrategies": [
"jwt",
"local",
"google"
],
"jwtOptions": {
"header": {
"typ": "access"
},
"audience": "https://yourdomain.com",
"issuer": "feathers",
"algorithm": "HS256",
"expiresIn": "1d"
},
"local": {
"usernameField": "email",
"passwordField": "password"
},
"oauth": {
"redirect": "/",
"auth0": {
"key": "<auth0 oauth key>",
"secret": "<auth0 oauth secret>",
"subdomain": "<auth0 subdomain>"
},
"google": {
"key": "672542105176-bnn2425dkploqcenkpm6u3c7g0s41n29.apps.googleusercontent.com",
"secret": "JyqNN2AWabd915ydcUTzLWNV",
"scope": [ "openid", "email" ]
},
"facebook": {
"key": "<facebook oauth key>",
"secret": "<facebook oauth secret>"
}
}
},
"mongodb": "mongodb://localhost:27017/api_auth"
}
Is there anything I am still missing?
it should not be using idToken, it should be accessToken instead
Feathers related setup: package.json
default.json
authentication.js
Test with insomia: