Spring Boot OAuth2 Social Login with Google and Facebook in One Application

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 พ.ย. 2023
  • In this Spring Security video, I’d like to share with you guys, about how to implement social login functionality with both Google and Facebook in a web application based on Java Spring Boot. In other words, it lets end users sign in your application using their own Google or Facebook account, besides the trivial username and password login.
    Throughout this video, I'll show you:
    - Implement Social Login with Google/Facebook in One Spring Boot web application using Spring Security OAuth2 Client library
    - Run custom logics upon successful OAuth2 Authorization
    - Determine whether users authenticated via Google or Facebook
    Technologies: Spring Boot Web, Spring Data JPA, Spring Security, Spring Security OAuth2 Client, Thymeleaf, Bootstrap & jQuery, MySQL database.
    Software programs: Java Development Kit (OpenJDK), Spring Tool Suite IDE (STS), MySQL Server & MySQL Workbench.
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @user-rn5xe3ev8w
    @user-rn5xe3ev8w 8 หลายเดือนก่อน

    it is very nice to learn from you ....Your Explaination is very clear and it start from begining to Advance level with actual company /real time usage ...
    can you make video on REST API headers(All) and its real use cases

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

      Thanks and welcome. Check out my REST API course: www.udemy.com/course/spring-boot-rest-apis-ultimate

  • @naveenrajukopparthi3046
    @naveenrajukopparthi3046 5 หลายเดือนก่อน +1

    In apps, normally we see that if any user clicks login with facebook then give credentials, he/she will able to login. How to achieve like that to our spring boot application (oauth). Because we are using single client id and client secret, that won't be allowed other users to login to facebook with their credentials. How can we allow login to all facebook users to our application, can we need to configure anywhere?

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

      what?!!! won't it let others to log in if we host our app?

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

      you need to switch your FB app to live mode so all FB users can login. Follow this video: th-cam.com/video/7qzjqwRpHm0/w-d-xo.html

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

      @@barun2858 Bro, I am saying, if we usually see in some applications, we can see login with Facebook right? If we click that, we can login to that app by our fb credentials. Like that anyone can login to that app with their fb credentials. Because there is a configuration between that app and fb. Like that I asked how to make our app to allow all fb users, If our webpage is available to public.

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

      @@CodeJava Thank you. It is fine, but In real time applications, can we follow this type of same procedure or anything more like getting access token etc? Can we able to add roles for the users who logging from facebook? Or can we restrict particular category of people login from facebook? where can we all configure these?

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

    A ơi nếu mà ko dùng thymleaf mà pj của e dùng be spring boot , fe nextjs thì sẽ làm kiểu j ạ?

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

      a chưa làm cái đó, nhưng sẽ phải dùng tới JWT hoặc tương tự đó.

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

      @@CodeJava vâng ạ

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

    Thanks

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

      Welcome

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

    ER diagram please

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

      I recommend you learn my full course in which you can get full ER diagram: www.udemy.com/course/spring-boot-e-commerce-ultimate

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

    @enableauthotizationserver and @enableresource server is working or not in spring boot 3 version?

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

      as far as I know, the @EnableAuthorizationServer is no longer available as Spring Security dropped authorization server.

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

      @@CodeJava ok. What is the replacement of that?

  • @daonguyenhuu3204
    @daonguyenhuu3204 8 หลายเดือนก่อน +1

    .