ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
How to create Google OAuth Credentials (Client ID and Secret)
ฝัง
- เผยแพร่เมื่อ 31 ส.ค. 2020
- In this short video, I'm going to share with you guys How to create a Google OAuth credential that is used for website login, allowing users to log into your application using their own Google accounts.
I will also show you how to get Client ID and Secret Key used for OAuth authentication, and then demo login to Java Spring Boot application using Google account.
I observed in to many you tube channels you are the first person which reply all the comment. And update the content as per requirement. Very very thanks.
Thanks for your kind feedback. I always try my best but I can't promise and guarantee anything.
I recommended this to my non-tech friend and it worked out :)
thanks. Glad it helped.
thanks for the amazing video. atlast after couple of hours i got the solution
Glad it helped
Thank you so much! I was able to configured OAuth in a few minutes after watching your video! Excellent work.
You are welcome. Glad it helped.
This is great, straight to the point!
thanks for watching :)
You are the best
Than you. I just share what I know.
Qst: Can i use oauth2 as a user to get jwt of another user in order to access some of his information ?
Very useful , Straight to the point .
Thank you
you're welcome. Glad it helped :)
I want client ID for TH-cam uploader telegram bot, the one with Web application is not working there, which one should I choose please help 🙏
For me when I'm trying to do oauth consent screen its showing this way for External :Available to any test user with a Google Account. Your app will start in testing mode and will only be available to users you add to the list of test users. Once your app is ready to push to production, you may need to verify your app . Did google updated it?? @ Code Java
Maybe.
Same for me , and you way is not working on it
Kindly update us on how to use it now
best
thanks.
i am implementing this over a LAN connection and when i open the same IP on another PC then again the same error uri_redirect is thrown
thank you so much my firend
Always welcome
You are awesome, from bangladesh,
Thank you so much 😀
can you help me? I made the same steps, everything worked, but after login nothing happens, any redirect...
Good One ! Thanks for the efforts.
Glad you liked it
Hi, Thank you so much brother you'e help me...
Glad I could help
You saved me.
you're welcome :)
what were you up to? why were you feel saved?
Thanks, i follow your instructions but when i choose my google account the app reloads and closes the popup without redirecting to the home page?
is there any error? Currently I have no idea why.
@@CodeJava i use vusjs as a frontend, the error is the( pop closed by user)
I hope that you will shortly update complete video of OUATH and jwt.
maybe OAuth with traditional webapps first, then OAuth with JWT (for React and Angular apps) will come later.
@@CodeJava can you make some video of spring AOP using some real time seniory in web applications.
yes, when time permits.
Hi Dear,
I have a problem, when I reach the window on 2:30 , under "External" choice it's not showing "Available to any user .....", instead it showing the below dialog:
"Available to any test user with a Google Account. Your app will start in testing mode and will only be available to users you add to the list of test users. Once your app is ready to push to production, you may need to verify your app."
So what should I do? regards.
I think it is similar. Perhaps Google updated it.
Very helpful - thanks so much !
Glad it helped
Thanks for the video.
Only one question: can I use with Maven, or only works with Gradle?
If I can use Maven what is the parameters I have to use?
Big hug from Portugal.
why Maven or Gradle here? this is about creating Google OAuth app, right? no coding, no programming.
you are just an amazing .....
thanks for watching :)
Could you please include a github example of the code you used? (Without the api key of course)
you can get the code examples and download a sample project here: www.codejava.net/frameworks/spring-boot/oauth2-login-with-google-example
How do you fix this: Authorization Error
Error 400: redirect_uri_mismatch
When I am creating key it is asking website name and not allowing to generate the key ?
it is required, you must have a website which will use the generated key.
Really useful thanks
Glad it helped
Thanks a Nam. A Nam có thể làm tutorial Admin gửi link reset password cho User ko ạ?
em xem tutorial này nhé: codejava.net/coding/how-to-implement-forgot-password-feature-for-java-web-application
A ơi a có video hướng dẫn đăng nhập bằng Apple không ạ
chưa có em ạ.
Thankyou nam
you're welcome, Raja. I will publish some videos about OAuth authentication in Spring.
URL Blocked: This redirect failed because the redirect URI is not whitelisted in the app’s Client OAuth Settings. Make sure Client and Web OAuth Login are on and add all your app domains as Valid OAuth Redirect URIs.
how can i solve this
the redirect URL used by your application must match the one specified in the Google Client OAuth settings.
Thks man for your help
Happy to help
thank you for the video
You're welcome
but how can i modifiy it in my project i'm using application.properties file, please help so that i can.
check my video: th-cam.com/video/lmS0hX5F_QQ/w-d-xo.html
I think, that looks like any one can login with any google id.
If I want to allow authorized specific user how can I fix it?
Hmm, that's the purpose of single sign on: allowing the users to access your application using third-party accounts like Facebook, Google, GitHub... If you want to authenticate only some specific users, you need to write code for that.
Thank you very much! 👍
You are welcome!
what to do if Create failed undefined is not an object (evaluating 'b.headers.keys')? Arigato!
hmm, I have no idea. Perhaps create another one.
vietnam à bạn ơi, Nghe cái giọng biết liền
Yes, welcome to my Java programming channel :)
Hello this email address will be seen by the user,what ismf we want our website email address so that user can see only that?
I'm not sure how to do that. Play around with the options in google OAuth settings. It maybe there.
nghe giọng là nghi rồi, tới lúc hiện ra gg account mới biết :D
kaka. Welcome and thanks for watching :)
which port u used apache or mysql ?
it's the port of apache tomcat server
What should I put in the url if im not using a localhost?
put your domain name
@@CodeJava but I get an error sir when I put my domain
Thanks so much
You're welcome!
I got a 403 forbidden how can I fix it
that error means you don't have permission to access the resource (Forbidden - unauthorized).
I like the 5 FPS
why?
The Key file provided is not valid. Make sure the file is of the form "client_secret_.apps.googleusercontent.com.json"
Hmm, I have no idea about that error :(
bạn ơi mục đổi ngôn ngữ chỗ nào ấy . Mình vào mà toàn tiếng pháp :((
Thank you 😊
You're welcome 😊
Good!
Thank you! Cheers!
Why is the recording so laggy?
Hello Bro, thanks for sharing. Just want to ask if I lost client secret where can I find it?
Unless you store the secret key in a safe place, you won't be able to find it once created. If that happens, just create a new one.
@@CodeJavathanks for answering, but the thing is if I choose the application type to android, there is no secretKey options, if I choose web application then I can find it. So what can I do, that android app asking for secretKey
@@jingyulu6785 I have no idea with Android.
which dependency add the project?
it is spring-boot-starter-oauth2-client
Bro, if I want to create client id for my 'example.blogspot. com' site in social content locker button to subscribe my TH-cam channel for the purpose of unlock the locked content so in client id creating time which website or domain URL link even name should be put under the JavaScript origin line and redirect url line ?? # create new credential > oauth client id > app type:web application, JavaScript origin: ...., redirect URL..
...
Hi Code Java, my name is Shantha. Well, I have encountered an issue regarding the OAuth client ID. Recently I could not sign in using Google account thru the Wordpress website. The issue was 'Error 401: deleted_client The OAuth client was deleted.' Kindly do let me know how to fix this issue. Thank you :)
that error means the oauth client id was deleted. So you need to create a new one.
@@CodeJava Alright, thank you so much 👍
Thề, giọng này chắc chắn là người Việt Nam
haha, sao phải thề bạn ơi :)
"Welcome Nam" kind of gave that away :v
Thank you
Welcome 😁
How to delete projects in Google developee console
Hmm, I don't know. Never try to delete in Google developer console.
Thank, worked fine for me
You're welcome! Come to see my channel more often.
@@CodeJava sure
thx, that's useful
Glad it helped
thanx lot
Happy to help. Do you integrate Google login in Spring Boot? So check this video: th-cam.com/video/lmS0hX5F_QQ/w-d-xo.html
To be honest I find it super hard to follow this, as it's really hard to understand due to his pronunciation, also I feel like nothing is explained about the developer side as the integration of gradle or maven.
sorry to hear that. For developer side, check out this video: th-cam.com/video/lmS0hX5F_QQ/w-d-xo.html
Thank you. I am having trouble with Vevo.
What happened?
@@CodeJava Every time I try to transfer songs from VEVO to TH-cam, a message appears saying app is blocked.
can you share your spring boot code
it is in this tutorial: www.codejava.net/frameworks/spring-boot/spring-boot-crud-example-with-spring-mvc-spring-data-jpa-thymeleaf-hibernate-mysql
Google Redirect URL please
it depends on your application using whatever for a redirect URL
How do i setup a springboot?
You can follow this video: th-cam.com/video/px5rfwi4yYk/w-d-xo.html
Tks!! like and subscribe s2
Bitte eine 2.Webadresse einrichten.
Die Rechnung bitte an meine Kontaktadressen schicken.
I don't understand
Thanks for the video, but can you provide a source code for this? xd
kindly refer to my written article: www.codejava.net/frameworks/spring-boot/oauth2-login-with-google-example
kindly share the application.yml file please please
check out the code in the written article: www.codejava.net/frameworks/spring-boot/oauth2-login-with-github-example
@@CodeJava thanks sir
@@muhammadajmal4363 but how can i modifiy it in my project i'm using application.properties file, please help so that i can.
bit confused on the URI
Do i get it from where i host my website
what would happen if i don't include the URI?
i'm using amazon by the way
Redirect URI is the URL to which the users will be redirect upon successful authentication with Google.
Here URI is a URL you define in your website
Is there any simple way to do this🤢
I don't know.