-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google OAuth Provider Issue #18
Comments
First, I've found that the issue was simply not having the Google+ API enable. I feel like for the Second, I'm now receiving another message in the client. It is happening on the redirect back from Google to the app. The message reads: {
"jwt":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MywiaWF0IjoxNTIzNjQwNjYyLCJleHAiOjE1MjYyMzI2NjJ9.Lp0bELpbJaYqSC6YSj1PNIyXHzYWVhvF4GrDxAiItJY",
"user":{
"id":3,
"username":"email@here.com",
"email":"email@here.com",
"provider":"google",
"role":{
"id":3,
"name":"Public",
"description":"Default role given to unauthenticated user.",
"type":"public"
},
"updated_at":null,
"created_at":null
}
} I'm not sure why at this point the client isn't returning to the app (I'd expect it to be going to |
I think that you'll find answer in this documentation. Let me know if you're still struggling |
If I follow the steps in those docs, I'm continually redirected back to Google account selection page (ie I'm confused as to why in the docs for the "The redirect URL to your front-end app" section it says to use Neither of the values seem to work Also, I'm pretty sure the base url used for "The redirect URL to your front-end app" is wrong. In the docs it is |
If you're using the boilerplate provided in the examples it's You're right, the url writtent in the admin is wrong but if you click on the field you'll see that it will automatically change to |
Well the redirect URL of your front-end app can be changed, However the one that manages the authentication between your api and your provider cannot be modified since it's dynamic, so if you change the port of your API the field will also be updated |
Hmm alright. So how is it in this documentation you were able to set both This is what I'm most confused about. |
@JeffWeim facing the same issues here while trying to integrating it with my strapi admin. Any clues as to what values you put as redirect URL in your provider? |
you need to make google process firstly from frontend app after that response add to the strapi backend server |
Node.js version:
9.11.1
npm version:
5.4.2
Strapi version:
3.0.0-alpha.11.3
Operating system:
MacOS
Which example is causing problem?
good-old-react-authentication-flow
Do you want to request a feature or report a bug?
report a bug
What is the current behavior?
After enabling Google as an OAuth provider in the Strapi admin, I attempt to use the provider for a login. I click the Google button and in the client receive this message:
{"message":"An internal server error occurred","statusCode":500,"error":"Internal Server Error"}
. Looking at the server output the only error I'm seeing is simply:error undefined is not a function
along with the GET requestIf the current behavior is a bug, please provide the steps to reproduce the problem
/auth/login
An additional note is that after configuring the Provider settings correctly, I was able to reach the Google account selection page. However, I am now only receiving the
{"message":"An internal server error occurred","statusCode":500,"error":"Internal Server Error"}
error in the clientWhat is the expected behavior?
Go to Google account selection, be returned to logged in state within the app
The text was updated successfully, but these errors were encountered: