Spring Boot Google reCAPTCHA v3 Integration Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Learn how to integrate Google reCAPTCHA v3 into a Java web application based on Spring Boot. I will walk you through the process of updating the login functionality of an application to use reCAPTCHA v3 to protect the login form.
    If the score returned by Google reCAPTCHA API is under a threshold value, redirect the users to the OTP Login screen (require users to enter one time password that has been sent to his email).
    Technologies:
    - Spring Boot web application (Thymeleaf & RestTemplate)
    - Spring Security for authentication
    - Google reCAPTCHA v3 (Javascript)
    Software programs:
    - Java Development Kit (JDK)
    - Spring Tool Suite IDE (STS)

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

  • @sagarsri4143
    @sagarsri4143 4 ปีที่แล้ว +2

    Superb 👌 explanation ✌️

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

      Thank you 🙂

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

    So great! Stick with it!

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

      Glad you liked it. Thanks for watching :)

  • @sergioden
    @sergioden 4 ปีที่แล้ว +2

    Thanks very very good!!!

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

      You're welcome. Glad it helped.

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

    Works for me ❤️ thanks for sharing your knowledge! 🍒

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

      Wonderful!

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

      Could You share github repo sample for above video? Thanks

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

    Great Video!
    How can you use recaptcha for multiple forms in the same page?

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

      Refer to the official Google ReCaptcha document. Also it is necessary to have multiple forms in a single page? I rarely face such case. Only one form is enough most of the time.

  • @user-dr2gv9rh6l
    @user-dr2gv9rh6l 11 หลายเดือนก่อน

    Osoòooovoo❤

  • @tomasvillanueva3601
    @tomasvillanueva3601 8 หลายเดือนก่อน

    How do I validate the OTP, block the user first or send an email with the code and if it is valid I let it go to the dashboard

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

      either way is okay. But I prefer sending email with the code.

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

    Great video. Do you have this sample code available for download? Thank you

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

      currently no. I will publish a corresponding article in which you can copy and download the code.

    • @ram-hf1zr
      @ram-hf1zr 2 ปีที่แล้ว

      @@CodeJava Did u uploaded the code

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

    This is great combination with OTP Email tutorial, thank you.
    It always returns score 0.9, how can I get score below 0.5?

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

      Maybe by controlling the mouse using keywords to fake a bot. Let try and let me know.

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

      manipulate the DTO before returning it

  • @user-no1ds1uh4b
    @user-no1ds1uh4b 6 หลายเดือนก่อน

    I always getting {"success": false, "error-codes": [ "invalid-input-response" ]

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

      check docs of Google reCaptcha to understand its meaning.

  • @hendisantika
    @hendisantika 10 หลายเดือนก่อน

    Is there any github repo link for this example? Thanks

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

      currently no code on GitHub.

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

    how do you exclude the login?logout from filter?

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

      You can check the request URL, if it ends with login?logout then bypass the rest of the code.

  • @hieu.nguyenvan6272
    @hieu.nguyenvan6272 3 ปีที่แล้ว

    Pls! What if I configure with xml?

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

      switch to annotation based Spring Boot development