Strapi Authentication Provider - Google

  Рет қаралды 32,479

Alex the Entreprenerd

Alex the Entreprenerd

Күн бұрын

Пікірлер: 62
@michelelesbao6050
@michelelesbao6050 2 жыл бұрын
For those struggling with 404 error, some updates. In strapi v4 we should use "/api/connect/google" instead of only "/connect/google" in order to communicate with google. However, doing so you probably will fall in 401 error in some point. What I did here was downgrade strapi in order to make it work. If v4 is important to you, it would be better to stay tunned with their repo and wait them fix it.
@r.vazamantazakka5908
@r.vazamantazakka5908 2 жыл бұрын
Thank you so much! You really helped me! I've been wondering what's wrong with my app for hours :'
@leanprogrammer
@leanprogrammer 2 жыл бұрын
Which version did you downgrade to?
@conororeilly5492
@conororeilly5492 Жыл бұрын
Wait, so the issue with Google Auth and Strapi v4 is Strapi itself?
@Max14211
@Max14211 4 жыл бұрын
This video had so much value I had to buy your course on principal. Thank you for making this learning process so easy :)
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Thank you!
@MedyGames
@MedyGames 4 жыл бұрын
Man you go all the way with this. I love it.
@lordrampenthump422
@lordrampenthump422 3 жыл бұрын
this is so simple but i couldnt get my head around it. this gave me the logic i needed. cheers
@Rockheaven1000
@Rockheaven1000 2 жыл бұрын
I bought your course and definitely worth it, please keep doing this amazing videos I'll buy all of them
@sacabonos
@sacabonos 4 жыл бұрын
Thanks for the detailed walkthrough. I'd love to see similar video for Microsoft authentication provider and how to restrict account creation for a specific domain. Keep it up 👍
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Thank you for your recommendation! Try using this guide: github.com/strapi/strapi-examples/blob/master/login-react/doc/microsoft_setup.md
@Malcolm777-i
@Malcolm777-i 4 жыл бұрын
@@AlextheEntreprenerd page not found.
@ThatGuyAnonymous
@ThatGuyAnonymous 4 жыл бұрын
As always you're delivering amazing content 👌
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Thank you!
@petarkolev6928
@petarkolev6928 4 жыл бұрын
I love your tutorial, it says it all!!
@CodeWithVlad
@CodeWithVlad 4 жыл бұрын
Very good channel, nice work on showing how to configure oauth on strapi :)
@amraromoro
@amraromoro 3 жыл бұрын
Excellent work man 🙌🙌
@mari25964
@mari25964 2 жыл бұрын
Hi Alex, my issue is that /connect/google is not redirecting me to OAuth screen. did something change in strapi?
@sanoj_silva
@sanoj_silva 4 жыл бұрын
Great work I've been waiting for this thank you
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Happy you enjoyed it!
@jonathanfmach2
@jonathanfmach2 4 жыл бұрын
Great video! Any idea on how to save additional information like user Name or profile picture?
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
The short answer is: Write a custom login provider. See Strapi guide here: strapi.io/documentation/v3.x/plugins/users-permissions.html#adding-a-new-provider-to-your-project See the current Google provider code here (search for google): github.com/strapi/strapi/blob/master/packages/strapi-plugin-users-permissions/services/Providers.js
@thegeeksides
@thegeeksides 3 жыл бұрын
@@AlextheEntreprenerd Hm, the body returned from google .query("oauth") doesn't contain user's name nor profile picture. Any help, please?
@reallegend1
@reallegend1 4 жыл бұрын
Thanks, Hope you can make a tutorial about Docker with strapi and gatsby .
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
I cover using Docker with Strapi here: kzbin.info/www/bejne/qIXEh2WgrbSLa6c
@codehucau5564
@codehucau5564 3 жыл бұрын
Good video, but you have any idea about aws cognito as Provider ?
@MrDiiaz94
@MrDiiaz94 3 жыл бұрын
Why i need call second call? In the first response call shown the jwt token wich can be used to call strapi endpoints (I tested it). Could you explain me?
@gabrielfono844
@gabrielfono844 3 жыл бұрын
sir please can you guide me on how to deploy an application built with strapi and react.js on digital ocean with custom domain. you dont have any course like this on udemy
@AlextheEntreprenerd
@AlextheEntreprenerd 3 жыл бұрын
Hey man! You can follow this video by Chris on the Digital Ocean channel: kzbin.info/www/bejne/jaPQn5eEpbyGgNk
@hasan-sh2hs
@hasan-sh2hs 4 жыл бұрын
Thank you for the content.
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Happy to help!
@TheSILVERVEVO
@TheSILVERVEVO 4 жыл бұрын
great topic. for the register part will it be the same? or theres no need to register users this way?
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Users are automatically registered. You could style the button with: "Access with Google". The user will be created only on the first time using the provider
@TheSILVERVEVO
@TheSILVERVEVO 4 жыл бұрын
@@AlextheEntreprenerd thanks man keep it up the good work
@jeffinj7707
@jeffinj7707 2 жыл бұрын
Doesnt work with strapi v4
@hasan-sh2hs
@hasan-sh2hs 4 жыл бұрын
you're a great guy. thanks.
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Glad I could help!
@ali-d-coded5620
@ali-d-coded5620 2 жыл бұрын
how to set up user with phone authentication only (without the need for email)? the process will mainly use phone number as the login username … reset-password will use OTP sent to phone… etc so mainly is to drop the need of email for the user?? Please help!!!
@gajanandpandey4790
@gajanandpandey4790 2 жыл бұрын
Can two strapi application run on single database.
@ali-d-coded5620
@ali-d-coded5620 2 жыл бұрын
Is there any way to use mobile number as identifier for login instead of email?
@husdadymena3682
@husdadymena3682 3 жыл бұрын
hello sir, I am implementing Strapi in an app made with react native, I need that when pressing a button (Touchable), it appears to me to choose a Google account and after choosing an account, a new user is created in Strapi, how would it be possible this sir? Good video
@Sandiprb
@Sandiprb 4 жыл бұрын
Is there any way to get more user data in Strapi user content type from Social auth. Like fullname, avatar etc. Thanks for such a good playlist on Strapi!
@jonathanfmach2
@jonathanfmach2 4 жыл бұрын
Just noticed I asked the same question. Did you make any progress on this? Cheers
@WarmanSuganda
@WarmanSuganda 2 жыл бұрын
Awesome, thanks for the tutorial. 👍
@nabeelahmad6600
@nabeelahmad6600 3 жыл бұрын
not working.....404 not found error
@AbhishekSahaWeb
@AbhishekSahaWeb 4 жыл бұрын
Great work. Could you please gide me to get user profile object from Google while authenticating?
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
Hey Abhishek, try looking into this file: github.com/strapi/strapi/blob/master/packages/strapi-plugin-users-permissions/services/Providers.js Then use the extensions system to customize the behavior so you can use the full Google Object
@Dhruvsaxena19
@Dhruvsaxena19 4 жыл бұрын
Is there any way if a user signed-up with local provider but now wan'ts to login via google? All i'm getting is email already taken. Can you please help me out with it.
@Dhruvsaxena19
@Dhruvsaxena19 4 жыл бұрын
Also when i switch up the url for redirect to my frontend, I'm getting error: 302 and login/signup fails.
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
You would have to overwrite the callback that the Grant / Purest Google Integration is using. It can be done, but you'll have to start from the source code: github.com/strapi/strapi
@andreyva4661
@andreyva4661 4 жыл бұрын
this instruction should be in the documentation strapi
@AlextheEntreprenerd
@AlextheEntreprenerd 4 жыл бұрын
I'll take that as a compliment!
@TheAzovStar
@TheAzovStar 3 жыл бұрын
Mistake: in field "The redirect URL to your fromt-end app" field: need to add to URL at the end slash "/". So will be: some.ngrok.io/auth/google/callback/ Without slash - redirect will be: some.ngrok.io/auth/google/callback%20?id_toke...
@TheAzovStar
@TheAzovStar 3 жыл бұрын
Alex, Thank you very much for this video! Great tutorial!
@deshario
@deshario 3 жыл бұрын
@@TheAzovStar it should be id_token right ... not access_token as in 13:45
@bignosethethird
@bignosethethird 3 жыл бұрын
Out of date and very frustrating to follow as much has changed on both Google Console and Strapi. Time for an update!
@gajanandpandey4790
@gajanandpandey4790 2 жыл бұрын
I want to use strapi as microservices.
@gauravsinghsays
@gauravsinghsays 4 жыл бұрын
The redirect URL to add in your Google application configurations : is uneditable and set to 0.0.0.0:23854/connect/google/callback. I've exactly replicated the steps, still. I hope mongodb configuration isn't related to google Auth. If it helps, local server says environment to be development while heroku app says production.
@rangabharath4253
@rangabharath4253 3 жыл бұрын
awesome
@mdsalahuddin2841
@mdsalahuddin2841 3 жыл бұрын
udemy says - This is a private course.!
@bisadelara5933
@bisadelara5933 3 жыл бұрын
Thanks ! Super helpful
Deploying Strapi to DigitalOcean
9:56
Strapi
Рет қаралды 36 М.
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Build an Inventory Management System Prototype with Strapi and React
1:20:54
Alex the Entreprenerd
Рет қаралды 47 М.
Set up Google OAuth with Next.js using Next-Auth!
21:00
Build SaaS with Ethan
Рет қаралды 33 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,8 МЛН
Strapi Security Checklist - Securing your Strapi App
12:02
Alex the Entreprenerd
Рет қаралды 4,7 М.
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 112 М.
Authentication in Strapi
9:09
Strapi
Рет қаралды 39 М.
Google OAuth 2.0 With NodeJS (No Passport or googleapis)
57:18
TomDoesTech
Рет қаралды 103 М.
Track Single Page Applications with Google Tag Manager and Google Analytics 4 (3 methods)
29:29
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 53 М.