How to create Google OAuth Credentials (Client ID and Secret)

  Рет қаралды 140,691

Code Java

Code Java

Күн бұрын

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.

Пікірлер: 158
@AjayGupta-ob8oe
@AjayGupta-ob8oe 4 жыл бұрын
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.
@CodeJava
@CodeJava 4 жыл бұрын
Thanks for your kind feedback. I always try my best but I can't promise and guarantee anything.
@MrCybiz
@MrCybiz Жыл бұрын
I recommended this to my non-tech friend and it worked out :)
@CodeJava
@CodeJava Жыл бұрын
thanks. Glad it helped.
@IkramFareed
@IkramFareed 3 жыл бұрын
thanks for the amazing video. atlast after couple of hours i got the solution
@CodeJava
@CodeJava 3 жыл бұрын
Glad it helped
@TheBayAYK
@TheBayAYK 2 жыл бұрын
Thank you so much! I was able to configured OAuth in a few minutes after watching your video! Excellent work.
@CodeJava
@CodeJava 2 жыл бұрын
You are welcome. Glad it helped.
@bigdamnhero2297
@bigdamnhero2297 3 жыл бұрын
This is great, straight to the point!
@CodeJava
@CodeJava 3 жыл бұрын
thanks for watching :)
@yassinemessaoud8619
@yassinemessaoud8619 3 жыл бұрын
Qst: Can i use oauth2 as a user to get jwt of another user in order to access some of his information ?
@amrfarrouh
@amrfarrouh 3 жыл бұрын
Very useful , Straight to the point . Thank you
@CodeJava
@CodeJava 3 жыл бұрын
you're welcome. Glad it helped :)
@booboojp8892
@booboojp8892 Жыл бұрын
You are the best
@CodeJava
@CodeJava Жыл бұрын
Than you. I just share what I know.
@LyadhKhorEngineer
@LyadhKhorEngineer 2 жыл бұрын
You saved me.
@CodeJava
@CodeJava 2 жыл бұрын
you're welcome :)
@danielniels22
@danielniels22 2 жыл бұрын
what were you up to? why were you feel saved?
@vitorpinto8110
@vitorpinto8110 3 жыл бұрын
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.
@CodeJava
@CodeJava 3 жыл бұрын
why Maven or Gradle here? this is about creating Google OAuth app, right? no coding, no programming.
@aayushsolanki2690
@aayushsolanki2690 2 жыл бұрын
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
@william_78
@william_78 2 жыл бұрын
can you help me? I made the same steps, everything worked, but after login nothing happens, any redirect...
@myasinyardam3652
@myasinyardam3652 2 жыл бұрын
thank you so much my firend
@CodeJava
@CodeJava 2 жыл бұрын
Always welcome
@smarttechnest
@smarttechnest 3 жыл бұрын
I want client ID for KZbin uploader telegram bot, the one with Web application is not working there, which one should I choose please help 🙏
@rahulbarua2770
@rahulbarua2770 3 жыл бұрын
You are awesome, from bangladesh,
@CodeJava
@CodeJava 3 жыл бұрын
Thank you so much 😀
@gergesbernaba2922
@gergesbernaba2922 2 жыл бұрын
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?
@CodeJava
@CodeJava 2 жыл бұрын
is there any error? Currently I have no idea why.
@gergesbernaba2922
@gergesbernaba2922 2 жыл бұрын
@@CodeJava i use vusjs as a frontend, the error is the( pop closed by user)
@LintoThomas-tv4ij
@LintoThomas-tv4ij Жыл бұрын
Good One ! Thanks for the efforts.
@CodeJava
@CodeJava Жыл бұрын
Glad you liked it
@vodgeee
@vodgeee 3 жыл бұрын
Very helpful - thanks so much !
@CodeJava
@CodeJava 3 жыл бұрын
Glad it helped
@priyathamik3495
@priyathamik3495 3 жыл бұрын
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
@CodeJava
@CodeJava 3 жыл бұрын
Maybe.
@yourneighbourhoodclownwith8490
@yourneighbourhoodclownwith8490 3 жыл бұрын
Same for me , and you way is not working on it Kindly update us on how to use it now
@jamochl
@jamochl 3 жыл бұрын
Could you please include a github example of the code you used? (Without the api key of course)
@CodeJava
@CodeJava 3 жыл бұрын
you can get the code examples and download a sample project here: www.codejava.net/frameworks/spring-boot/oauth2-login-with-google-example
@amolsd8706
@amolsd8706 3 жыл бұрын
you are just an amazing .....
@CodeJava
@CodeJava 3 жыл бұрын
thanks for watching :)
@youtublaablaablaa9336
@youtublaablaablaa9336 3 жыл бұрын
Hi, Thank you so much brother you'e help me...
@CodeJava
@CodeJava 3 жыл бұрын
Glad I could help
@ExChangerTV
@ExChangerTV 2 жыл бұрын
The Key file provided is not valid. Make sure the file is of the form "client_secret_.apps.googleusercontent.com.json"
@CodeJava
@CodeJava 2 жыл бұрын
Hmm, I have no idea about that error :(
@السلامةدائما
@السلامةدائما 3 жыл бұрын
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.
@CodeJava
@CodeJava 3 жыл бұрын
I think it is similar. Perhaps Google updated it.
@xbranx12
@xbranx12 3 жыл бұрын
Really useful thanks
@CodeJava
@CodeJava 3 жыл бұрын
Glad it helped
@AjayGupta-ob8oe
@AjayGupta-ob8oe 4 жыл бұрын
I hope that you will shortly update complete video of OUATH and jwt.
@CodeJava
@CodeJava 4 жыл бұрын
maybe OAuth with traditional webapps first, then OAuth with JWT (for React and Angular apps) will come later.
@AjayGupta-ob8oe
@AjayGupta-ob8oe 4 жыл бұрын
@@CodeJava can you make some video of spring AOP using some real time seniory in web applications.
@CodeJava
@CodeJava 4 жыл бұрын
yes, when time permits.
@mediamate8215
@mediamate8215 2 жыл бұрын
How do you fix this: Authorization Error Error 400: redirect_uri_mismatch
@Amit-nc7ke
@Amit-nc7ke 2 жыл бұрын
When I am creating key it is asking website name and not allowing to generate the key ?
@CodeJava
@CodeJava 2 жыл бұрын
it is required, you must have a website which will use the generated key.
@kinhnguyen3246
@kinhnguyen3246 3 жыл бұрын
vietnam à bạn ơi, Nghe cái giọng biết liền
@CodeJava
@CodeJava 3 жыл бұрын
Yes, welcome to my Java programming channel :)
@shrutikadeshmane4319
@shrutikadeshmane4319 3 жыл бұрын
Thank you very much! 👍
@CodeJava
@CodeJava 3 жыл бұрын
You are welcome!
@israelherrera6891
@israelherrera6891 3 жыл бұрын
Thks man for your help
@CodeJava
@CodeJava 3 жыл бұрын
Happy to help
@potararaj2642
@potararaj2642 4 жыл бұрын
Thankyou nam
@CodeJava
@CodeJava 4 жыл бұрын
you're welcome, Raja. I will publish some videos about OAuth authentication in Spring.
@e-takememart1163
@e-takememart1163 3 жыл бұрын
best
@CodeJava
@CodeJava 3 жыл бұрын
thanks.
@cmingo237
@cmingo237 3 жыл бұрын
thank you for the video
@CodeJava
@CodeJava 3 жыл бұрын
You're welcome
@larskuhlmann5571
@larskuhlmann5571 2 жыл бұрын
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.
@CodeJava
@CodeJava 2 жыл бұрын
sorry to hear that. For developer side, check out this video: kzbin.info/www/bejne/op62YZuOaquSh7M
@FayazEasyEducation
@FayazEasyEducation 3 жыл бұрын
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
@CodeJava
@CodeJava 3 жыл бұрын
the redirect URL used by your application must match the one specified in the Google Client OAuth settings.
@ktn4
@ktn4 4 жыл бұрын
Thanks a Nam. A Nam có thể làm tutorial Admin gửi link reset password cho User ko ạ?
@CodeJava
@CodeJava 4 жыл бұрын
em xem tutorial này nhé: codejava.net/coding/how-to-implement-forgot-password-feature-for-java-web-application
@ashes1746
@ashes1746 Жыл бұрын
A ơi a có video hướng dẫn đăng nhập bằng Apple không ạ
@CodeJava
@CodeJava Жыл бұрын
chưa có em ạ.
@deepaklobaniya8701
@deepaklobaniya8701 2 жыл бұрын
but how can i modifiy it in my project i'm using application.properties file, please help so that i can.
@CodeJava
@CodeJava 2 жыл бұрын
check my video: kzbin.info/www/bejne/op62YZuOaquSh7M
@giakhoinguyen9192
@giakhoinguyen9192 3 жыл бұрын
nghe giọng là nghi rồi, tới lúc hiện ra gg account mới biết :D
@CodeJava
@CodeJava 3 жыл бұрын
kaka. Welcome and thanks for watching :)
@jdkim7036
@jdkim7036 4 жыл бұрын
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?
@CodeJava
@CodeJava 4 жыл бұрын
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.
@nishantsingh2000
@nishantsingh2000 3 жыл бұрын
Thank, worked fine for me
@CodeJava
@CodeJava 3 жыл бұрын
You're welcome! Come to see my channel more often.
@nishantsingh2000
@nishantsingh2000 3 жыл бұрын
@@CodeJava sure
@successhycenth
@successhycenth 2 жыл бұрын
Thanks so much
@CodeJava
@CodeJava 2 жыл бұрын
You're welcome!
@oquangvinh363
@oquangvinh363 2 жыл бұрын
bạn ơi mục đổi ngôn ngữ chỗ nào ấy . Mình vào mà toàn tiếng pháp :((
@chiendo7399
@chiendo7399 3 жыл бұрын
Thề, giọng này chắc chắn là người Việt Nam
@CodeJava
@CodeJava 3 жыл бұрын
haha, sao phải thề bạn ơi :)
@phanvanhoa
@phanvanhoa 3 жыл бұрын
"Welcome Nam" kind of gave that away :v
@ketanmishra1128
@ketanmishra1128 3 жыл бұрын
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?
@CodeJava
@CodeJava 3 жыл бұрын
I'm not sure how to do that. Play around with the options in google OAuth settings. It maybe there.
@abdi_pie7266
@abdi_pie7266 3 жыл бұрын
thx, that's useful
@CodeJava
@CodeJava 3 жыл бұрын
Glad it helped
@pradeepkumawat5713
@pradeepkumawat5713 3 жыл бұрын
Thank you 😊
@CodeJava
@CodeJava 3 жыл бұрын
You're welcome 😊
@mamamia94151
@mamamia94151 3 жыл бұрын
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 :)
@CodeJava
@CodeJava 3 жыл бұрын
that error means the oauth client id was deleted. So you need to create a new one.
@mamamia94151
@mamamia94151 3 жыл бұрын
@@CodeJava Alright, thank you so much 👍
@jingyulu6785
@jingyulu6785 2 жыл бұрын
Hello Bro, thanks for sharing. Just want to ask if I lost client secret where can I find it?
@CodeJava
@CodeJava 2 жыл бұрын
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.
@jingyulu6785
@jingyulu6785 2 жыл бұрын
@@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
@CodeJava
@CodeJava 2 жыл бұрын
@@jingyulu6785 I have no idea with Android.
@АхтямовФанил
@АхтямовФанил 3 жыл бұрын
Good!
@CodeJava
@CodeJava 3 жыл бұрын
Thank you! Cheers!
@AkmaAit
@AkmaAit 3 жыл бұрын
what to do if Create failed undefined is not an object (evaluating 'b.headers.keys')? Arigato!
@CodeJava
@CodeJava 3 жыл бұрын
hmm, I have no idea. Perhaps create another one.
@boytapanganvlogs
@boytapanganvlogs 2 жыл бұрын
What should I put in the url if im not using a localhost?
@CodeJava
@CodeJava 2 жыл бұрын
put your domain name
@boytapanganvlogs
@boytapanganvlogs 2 жыл бұрын
@@CodeJava but I get an error sir when I put my domain
@2000pppp
@2000pppp 2 жыл бұрын
Thank you
@CodeJava
@CodeJava 2 жыл бұрын
Welcome 😁
@khanfaysal993
@khanfaysal993 3 жыл бұрын
which port u used apache or mysql ?
@CodeJava
@CodeJava 3 жыл бұрын
it's the port of apache tomcat server
@jjjjjjjjjjjjjjjjjjj804
@jjjjjjjjjjjjjjjjjjj804 3 жыл бұрын
I like the 5 FPS
@CodeJava
@CodeJava 3 жыл бұрын
why?
@hauber1169
@hauber1169 3 жыл бұрын
Why is the recording so laggy?
@cloudgatelk343
@cloudgatelk343 3 жыл бұрын
thanx lot
@CodeJava
@CodeJava 3 жыл бұрын
Happy to help. Do you integrate Google login in Spring Boot? So check this video: kzbin.info/www/bejne/op62YZuOaquSh7M
@vineethnair4137
@vineethnair4137 3 жыл бұрын
How to delete projects in Google developee console
@CodeJava
@CodeJava 3 жыл бұрын
Hmm, I don't know. Never try to delete in Google developer console.
@alexanderlord1512
@alexanderlord1512 Жыл бұрын
I got a 403 forbidden how can I fix it
@CodeJava
@CodeJava Жыл бұрын
that error means you don't have permission to access the resource (Forbidden - unauthorized).
@mdjakirhossain1312
@mdjakirhossain1312 3 жыл бұрын
Bro, if I want to create client id for my 'example.blogspot. com' site in social content locker button to subscribe my KZbin 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.. ...
@arulmuruganpanneer6134
@arulmuruganpanneer6134 3 жыл бұрын
which dependency add the project?
@CodeJava
@CodeJava 3 жыл бұрын
it is spring-boot-starter-oauth2-client
@ericgcastile
@ericgcastile 3 жыл бұрын
Thank you. I am having trouble with Vevo.
@CodeJava
@CodeJava 3 жыл бұрын
What happened?
@ericgcastile
@ericgcastile 3 жыл бұрын
@@CodeJava Every time I try to transfer songs from VEVO to KZbin, a message appears saying app is blocked.
@himanshuchaturvedi3027
@himanshuchaturvedi3027 Жыл бұрын
can you share your spring boot code
@CodeJava
@CodeJava Жыл бұрын
it is in this tutorial: www.codejava.net/frameworks/spring-boot/spring-boot-crud-example-with-spring-mvc-spring-data-jpa-thymeleaf-hibernate-mysql
@mstotv
@mstotv 11 ай бұрын
Google Redirect URL please
@CodeJava
@CodeJava 11 ай бұрын
it depends on your application using whatever for a redirect URL
@ernestinekarmann304
@ernestinekarmann304 3 жыл бұрын
Bitte eine 2.Webadresse einrichten. Die Rechnung bitte an meine Kontaktadressen schicken.
@CodeJava
@CodeJava 3 жыл бұрын
I don't understand
@jrey5667
@jrey5667 3 жыл бұрын
How do i setup a springboot?
@CodeJava
@CodeJava 3 жыл бұрын
You can follow this video: kzbin.info/www/bejne/pqmYo5mtnpmsj80
@joneljayfernandez4881
@joneljayfernandez4881 2 жыл бұрын
Thanks for the video, but can you provide a source code for this? xd
@CodeJava
@CodeJava 2 жыл бұрын
kindly refer to my written article: www.codejava.net/frameworks/spring-boot/oauth2-login-with-google-example
@rafaelolimpio8497
@rafaelolimpio8497 3 жыл бұрын
Tks!! like and subscribe s2
@muhammadajmal4363
@muhammadajmal4363 2 жыл бұрын
kindly share the application.yml file please please
@CodeJava
@CodeJava 2 жыл бұрын
check out the code in the written article: www.codejava.net/frameworks/spring-boot/oauth2-login-with-github-example
@muhammadajmal4363
@muhammadajmal4363 2 жыл бұрын
@@CodeJava thanks sir
@deepaklobaniya8701
@deepaklobaniya8701 2 жыл бұрын
@@muhammadajmal4363 but how can i modifiy it in my project i'm using application.properties file, please help so that i can.
@TarcisiousKuateRasegojwa
@TarcisiousKuateRasegojwa 3 жыл бұрын
bit confused on the URI
@TarcisiousKuateRasegojwa
@TarcisiousKuateRasegojwa 3 жыл бұрын
Do i get it from where i host my website
@TarcisiousKuateRasegojwa
@TarcisiousKuateRasegojwa 3 жыл бұрын
what would happen if i don't include the URI?
@TarcisiousKuateRasegojwa
@TarcisiousKuateRasegojwa 3 жыл бұрын
i'm using amazon by the way
@CodeJava
@CodeJava 3 жыл бұрын
Redirect URI is the URL to which the users will be redirect upon successful authentication with Google.
@CodeJava
@CodeJava 3 жыл бұрын
Here URI is a URL you define in your website
@unfinishedbussines
@unfinishedbussines 2 жыл бұрын
Is there any simple way to do this🤢
@CodeJava
@CodeJava 2 жыл бұрын
I don't know.
Setup Google OAuth sign in 6 minutes
6:51
Appwrite
Рет қаралды 55 М.
OAuth 2.0 and OpenID Connect (in plain English)
1:02:17
OktaDev
Рет қаралды 1,7 МЛН
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН
Пришёл к другу на ночёвку 😂
01:00
Cadrol&Fatich
Рет қаралды 10 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 101 МЛН
How to create GitHub OAuth App (client ID and client secret)
8:57
Spring Boot OAuth2 Social Login with Google Example
53:44
Code Java
Рет қаралды 48 М.
Adding Google Sign In to your webapp   Getting Started
22:05
Danny Aslam-Perez
Рет қаралды 80 М.
oAuth for Beginners - How oauth authentication🔒 works ?
10:43
Google OAuth with curl: A Complete Tutorial
17:02
DAIMTO Developer Tips
Рет қаралды 24 М.
#3. OAuth 2.0 | Generate Client ID & Client Secret For Google APIs |
12:21
Create Google Oauth credentials Client Id and Your Client Secret id
7:10
NetCast on WebTech Zone
Рет қаралды 28 М.
Google API - OAuth 2.0 - Get AccessToken and Refresh Token Part-1
28:05
OpenSourceAutomation - Afsar Ali
Рет қаралды 118 М.
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 51 МЛН