ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

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.

ความคิดเห็น • 158

  • @AjayGupta-ob8oe
    @AjayGupta-ob8oe 4 ปีที่แล้ว +2

    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 ปีที่แล้ว +2

    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 ปีที่แล้ว +3

    This is great, straight to the point!

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      thanks for watching :)

  • @booboojp8892
    @booboojp8892 ปีที่แล้ว +1

    You are the best

    • @CodeJava
      @CodeJava  ปีที่แล้ว

      Than you. I just share what I know.

  • @yassinemessaoud8619
    @yassinemessaoud8619 3 ปีที่แล้ว +1

    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 ปีที่แล้ว +2

    Very useful , Straight to the point .
    Thank you

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      you're welcome. Glad it helped :)

  • @smarttechnest
    @smarttechnest 3 ปีที่แล้ว

    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 🙏

  • @priyathamik3495
    @priyathamik3495 3 ปีที่แล้ว +1

    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

  • @e-takememart1163
    @e-takememart1163 3 ปีที่แล้ว +1

    best

  • @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

  • @myasinyardam3652
    @myasinyardam3652 2 ปีที่แล้ว

    thank you so much my firend

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      Always welcome

  • @rahulbarua2770
    @rahulbarua2770 3 ปีที่แล้ว

    You are awesome, from bangladesh,

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Thank you so much 😀

  • @william_78
    @william_78 2 ปีที่แล้ว

    can you help me? I made the same steps, everything worked, but after login nothing happens, any redirect...

  • @LintoThomas-tv4ij
    @LintoThomas-tv4ij ปีที่แล้ว

    Good One ! Thanks for the efforts.

    • @CodeJava
      @CodeJava  ปีที่แล้ว

      Glad you liked it

  • @youtublaablaablaa9336
    @youtublaablaablaa9336 3 ปีที่แล้ว

    Hi, Thank you so much brother you'e help me...

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Glad I could help

  • @LyadhKhorEngineer
    @LyadhKhorEngineer 2 ปีที่แล้ว +1

    You saved me.

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      you're welcome :)

    • @danielniels22
      @danielniels22 2 ปีที่แล้ว

      what were you up to? why were you feel saved?

  • @gergesbernaba2922
    @gergesbernaba2922 ปีที่แล้ว

    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  ปีที่แล้ว

      is there any error? Currently I have no idea why.

    • @gergesbernaba2922
      @gergesbernaba2922 ปีที่แล้ว

      @@CodeJava i use vusjs as a frontend, the error is the( pop closed by user)

  • @AjayGupta-ob8oe
    @AjayGupta-ob8oe 4 ปีที่แล้ว +1

    I hope that you will shortly update complete video of OUATH and jwt.

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว +1

      maybe OAuth with traditional webapps first, then OAuth with JWT (for React and Angular apps) will come later.

    • @AjayGupta-ob8oe
      @AjayGupta-ob8oe 4 ปีที่แล้ว +1

      @@CodeJava can you make some video of spring AOP using some real time seniory in web applications.

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว +1

      yes, when time permits.

  • @user-iv5kj6zw4r
    @user-iv5kj6zw4r 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 ปีที่แล้ว +1

      I think it is similar. Perhaps Google updated it.

  • @vodgeee
    @vodgeee 3 ปีที่แล้ว

    Very helpful - thanks so much !

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Glad it helped

  • @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.

  • @amolsd8706
    @amolsd8706 3 ปีที่แล้ว

    you are just an amazing .....

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      thanks for watching :)

  • @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

  • @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.

  • @xbranx12
    @xbranx12 3 ปีที่แล้ว

    Really useful thanks

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Glad it helped

  • @ktn4
    @ktn4 4 ปีที่แล้ว +1

    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 ạ.

  • @potararaj2642
    @potararaj2642 4 ปีที่แล้ว +1

    Thankyou nam

    • @CodeJava
      @CodeJava  4 ปีที่แล้ว

      you're welcome, Raja. I will publish some videos about OAuth authentication in Spring.

  • @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.

  • @israelherrera6891
    @israelherrera6891 3 ปีที่แล้ว

    Thks man for your help

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Happy to help

  • @cmingo237
    @cmingo237 3 ปีที่แล้ว

    thank you for the video

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      You're welcome

  • @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: th-cam.com/video/lmS0hX5F_QQ/w-d-xo.html

  • @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.

  • @shrutikadeshmane4319
    @shrutikadeshmane4319 3 ปีที่แล้ว

    Thank you very much! 👍

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว +1

      You are welcome!

  • @AkmaAit
    @AkmaAit 3 ปีที่แล้ว

    what to do if Create failed undefined is not an object (evaluating 'b.headers.keys')? Arigato!

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว +1

      hmm, I have no idea. Perhaps create another one.

  • @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 :)

  • @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.

  • @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 :)

  • @khanfaysal993
    @khanfaysal993 3 ปีที่แล้ว

    which port u used apache or mysql ?

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      it's the port of apache tomcat server

  • @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

  • @successhycenth
    @successhycenth 2 ปีที่แล้ว

    Thanks so much

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      You're welcome!

  • @alexanderlord1512
    @alexanderlord1512 11 หลายเดือนก่อน

    I got a 403 forbidden how can I fix it

    • @CodeJava
      @CodeJava  11 หลายเดือนก่อน

      that error means you don't have permission to access the resource (Forbidden - unauthorized).

  • @jjjjjjjjjjjjjjjjjjj804
    @jjjjjjjjjjjjjjjjjjj804 2 ปีที่แล้ว

    I like the 5 FPS

  • @ExChangerTV
    @ExChangerTV 2 ปีที่แล้ว +1

    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 :(

  • @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 :((

  • @pradeepkumawat5713
    @pradeepkumawat5713 3 ปีที่แล้ว

    Thank you 😊

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      You're welcome 😊

  • @user-rh6st6bl7w
    @user-rh6st6bl7w 2 ปีที่แล้ว

    Good!

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      Thank you! Cheers!

  • @hauber1169
    @hauber1169 3 ปีที่แล้ว

    Why is the recording so laggy?

  • @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.

  • @arulmuruganpanneer6134
    @arulmuruganpanneer6134 3 ปีที่แล้ว

    which dependency add the project?

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      it is spring-boot-starter-oauth2-client

  • @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 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..
    ...

  • @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 ปีที่แล้ว +1

      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 👍

  • @chiendo7399
    @chiendo7399 3 ปีที่แล้ว +1

    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

  • @2000pppp
    @2000pppp 2 ปีที่แล้ว

    Thank you

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว

      Welcome 😁

  • @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.

  • @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

  • @abdi_pie7266
    @abdi_pie7266 3 ปีที่แล้ว

    thx, that's useful

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      Glad it helped

  • @cloudgatelk343
    @cloudgatelk343 3 ปีที่แล้ว

    thanx lot

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      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

  • @larskuhlmann5571
    @larskuhlmann5571 2 ปีที่แล้ว +1

    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: th-cam.com/video/lmS0hX5F_QQ/w-d-xo.html

  • @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 TH-cam, 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 9 หลายเดือนก่อน

    Google Redirect URL please

    • @CodeJava
      @CodeJava  9 หลายเดือนก่อน +1

      it depends on your application using whatever for a redirect URL

  • @jrey5667
    @jrey5667 3 ปีที่แล้ว

    How do i setup a springboot?

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      You can follow this video: th-cam.com/video/px5rfwi4yYk/w-d-xo.html

  • @rafaelolimpio8497
    @rafaelolimpio8497 3 ปีที่แล้ว

    Tks!! like and subscribe s2

  • @ernestinekarmann304
    @ernestinekarmann304 3 ปีที่แล้ว

    Bitte eine 2.Webadresse einrichten.
    Die Rechnung bitte an meine Kontaktadressen schicken.

    • @CodeJava
      @CodeJava  3 ปีที่แล้ว

      I don't understand

  • @joneljayfernandez4881
    @joneljayfernandez4881 2 ปีที่แล้ว

    Thanks for the video, but can you provide a source code for this? xd

    • @CodeJava
      @CodeJava  2 ปีที่แล้ว +1

      kindly refer to my written article: www.codejava.net/frameworks/spring-boot/oauth2-login-with-google-example

  • @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 ปีที่แล้ว +1

      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.