Replies: 1 comment
-
Most likely, password is a required field to create a user record, set up that way for the local strategy. What I've done is to populate a placeholder password for the newly OAuth'd (but not yet created in your app) user like this:
and then later
The user will never use this specific password, it just exists as a placeholder known to no one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am following the doc to create google strategy.
When I access http://localhost:3030/oauth/google through browser, below error occurs:
authentication.js
config/local.json
Update 1
Fixed issue by adding
https://localhost/oauth/google/callback
inAuthorized redirect URIs
.Now the website redirect to
Select Account
Page.After I click my account, the website is redirected to
https://localhost/oauth/google/callback?code=4/abcd-xxx-xxxxx-xxx&scope=email%20profile%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile%20openid&authuser=0&hd=myDomain.com&prompt=consent
Update 2
Updated local.json and add
redirect_uri
fieldIt can now redirect to
http://localhost:3030/auth/google/callback?code=xxx&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid&authuser=0&hd=myDomain.com&prompt=consent#
It shows

404 Page Not Find
instead of redirecting to/
Update 3
Now the website redirects to
https://localhost/oauth/google/authenticate#
, I know it should behttps://localhost:3030/oauth/google/authenticate
, but I don't know how and where Feather can set itUpdate 4
Finally successfully redirecting to
www.google.com#error=Field%20password%20does%20not%20exist.%20(required)
,is it kind of an error?
Beta Was this translation helpful? Give feedback.
All reactions