OAuth2 & Spring boot 3 & Social login | never been easier

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024

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

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

    Join the Micro Services course waiting list and get and get an exclusive *EARLY-BIRD discount*
    aliboucoding.ck.page/d0f9317e13

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

      i will buy your course if it using security for each service and using angular or reactjs for frontend

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

      @BoualiAli could you please share the information of follow up video for custom Authorization

  • @AnilKumarPrajapati-lv8fs
    @AnilKumarPrajapati-lv8fs 6 หลายเดือนก่อน +1

    Wow, what an incredibly helpful video on Spring Boot! 🌱👍 I really appreciate the clear explanations and step-by-step instructions provided.

  • @kevinameda2711
    @kevinameda2711 ปีที่แล้ว +5

    Thank you Ali I really appreciate you very much, stay blessed and God help you in all your endeavors. To find ones withh such a heart is rare

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

      Thank you so much brother
      JZK ❤️❤️

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

    Such a great video. Thank you! A lot of people would like to see how to implement oauth2 with a logic jwt, once you singed in with a google, front get the jwt token and invoke any methods with the jwt token. That is means logic with the jwt token will be not changed, but we added google oauth2. None of youtube videos about this issue…

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

      I really have this video idea on my todo list. it is just a matter of time and it will be done ASAP

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

      @@BoualiAli Any update regarding this topic so far? Would be intersting to see it in combination with angular.

  • @jayjoshi1366
    @jayjoshi1366 8 หลายเดือนก่อน +2

    Awesome video on OAuth 2.0 implementation using social logins. I never thought that this would be so much easier, but I think you made it easy to understand for beginners to experienced and seniors as well. Your contribution is very much valuable and I hope you get more and more support in terms of Subscription + likes + shares + comments.

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

      Great to hear!

  • @zabialy2919
    @zabialy2919 ปีที่แล้ว +8

    Great Video. It would be cool to see how the workflow looks when it is combined with a usual JWT Token authenticated with credentials.

    • @BoualiAli
      @BoualiAli  ปีที่แล้ว +7

      Working on it already

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

      @@BoualiAli Btw. what is the theme you are using?

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

      @@zabialy2919 it is the default theme of the new version of intellij

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

    Thank you so much, i've learned a lot from you, may the Almighty reward you !
    The next thing i would like to learn from you is microservice and ci/cd approach.

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

      I’m preparing a good thing about microservices
      Just still need some time to make it done ✅

  • @seethad8057
    @seethad8057 7 หลายเดือนก่อน +1

    you are really awesome..Thank you for this valuable session..

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

      Glad you think so!

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

    Thanks buddy and i like how your doing real solutions example which someone can apply to their personal project Next maybe we should host this app now

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

      Really happy you liked it

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

      @@BoualiAli when can we expect the combined oauth and jwt authentication??

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

    this video is so simply for every one to understand..can you make more videos on this?

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

      Really happy you liked it
      Sure I will

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

    Thank you. Very userful for beginners.

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

      Happy you liked it

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

    Dear, I have gone through so many videos from paid courses as well but really didn't see any such tutorial. You really explained and demonstrated so easily. Salute to you. Keep it up.
    Thank you so much for such informative video.

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

      I really appreciate and like your comment and feedback
      Glad it was helpful!

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

    I hit like before I even watched it .......knew it was gonna be great , and it was !!

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

      Best comment ever.
      You just made my day. Thanks a lot bro

  • @anubhavgarg6359
    @anubhavgarg6359 19 วันที่ผ่านมา

    9:41 amazing diagram to understand.

  • @vageeshanvageesh5583
    @vageeshanvageesh5583 ปีที่แล้ว +9

    Great content, can you please guide us on using JWT oauth2 in the combination of Authorisation server and resource server

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

      This is what the video is about.authorization and resource server.
      Can you explain more?

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

      exactly

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

      @@BoualiAli In this session you explained very clearly and in depth about the oauth2 concepts and with an example of social login providers like google, facebook and github. What we are asking is, implemention of oauth2 using spring security without any external providers. At the high level
      1. One spring boot application (Act as a authorization server) - This application is responsible for validating the user credentials, generating the token (JWT or JDBC) and validating the token. Hence user details needed to be stored in our database not in third party providers.
      2. Another spring boot application (Act as a resource server) - This application may contains both secured and public endpoints. if user try to access the secured endpoints the request must be validated by our Authorization server application (We are sending the token as bearer in header). If a particular request is valid then we can access the secured endpoints otherwise un authorized. Hope i answered your question...

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

      @@vageeshanvageesh5583 now it’s clear
      I will take note of that and prepare a course about it

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

      @@BoualiAli Thank you so much man, Im trying to implement this from past months but no luck, If you have some time please guide us on this.

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

    COUPON Code: *EARLYBIRD20* => Spring Data J PA course: aliboucoding.com/p/the-full-guide-to-master-spring-boot-data-jpa

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

    When I creating app in google cloud, it asking redirect-uri. It should end with login/oauth2/code/google and for github it should end with login/oauth2/code/github

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

      The redirect URI is where do you want to be redirected after a successfull login

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

      @@BoualiAli yes, also google server send a token to this uri. And for normal recieve this token by spring ouath2 module, it should come exactly to the login/oauth2/code/google uri

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

    Thank you so much for this video.

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

    You are great teacher.

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

    Excellent video! Thank you!

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

      Glad you liked it!

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

    Excellent explanation 🙌🏻 Keep videos like this coming 🙌🏻

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

      Absolutely
      Thank you for the feedback

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

    zo'r chiqibti👍👍👍👍

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

    Thanks a lot boss. Your courses are really helpfull to me.

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

      Thanks
      Really happy to know that

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

    Well explained. Thank you Ali

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

      Really happy you liked it

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

    Great video, thank you so much. How about Android applications? Where should I make configuration of Oauth2 in this case? In android application or as you have shown in Rest API ?

  • @DholaSain
    @DholaSain 11 หลายเดือนก่อน +1

    🤩 Video is awesome. i have few questions.
    ✋ What if our application uses all type of Auth. Email Password, Google, Facebook and Apple? and we also want to use the JWT for client & server communication?
    ✋ What about the mobile apps front end side to authenticate, mobile apps have different behaviour in Apple Authentication?
    🤌 Please make a video for these requirements. i really want to learn all of these.🤌

    • @BoualiAli
      @BoualiAli  11 หลายเดือนก่อน +1

      I already planned this video but I just can't find enough time to do it.
      But I will so soon

  • @AliZain-sb5jb
    @AliZain-sb5jb 4 หลายเดือนก่อน

    really appreciate your support sir, please make a vedio for login form with latest version of spring boot + jwt security+angular ui.. thanku

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

      Already uploaded

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

    Thank you So much , Like before watching

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

      So nice of you

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

    Hey Bouali, you are really doing a great work here.

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

    Great content aloulou, thank you so much bro

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

      Ny pleasure bro

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

    Thanks. There is one more fantastic tutorial. Get a clear-cut idea of how it works flow-wise and implementation-wise. Can you help or provide some idea how to implement social media login with JWT

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

      I will try to cover it ASAP

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

    Thanks for sharing Ali

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

    Thank you so much for this video

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

      You're so welcome!

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

    Nice video !! can you create a video about web security . a kind of road map or best practises a devloper can follow to make a safe application from different type of attacks

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

      I will create soon a video about software quality and best practices. I will also consider a video about security

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

    Linking the link in the description lol Thanks Alibou..

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

      Happy you liked it!

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

    Hello @BoualiAli, I've been following your channel for while and i must say, you have one of the best springboot content on TH-cam. Well done. That being said, I have a question and I'd really appreciate your prompt response. How do I implement OAuth (in my case, Google and Facebook) together with traditional user login (username and password authentication)?

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

      Thanks, will do!

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

    thank you so muchh

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

    Thank you for explanation

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

    Thanks for the video. ​
    Do you have any plans to make video about using both jwt token authentication and identity provider (oauth2) together ?

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน +1

      keycloak video is coming next week

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

    I must say Awesome and you cleared all my problems you deserve the all likes ,subscriptions and shares and reach the great heights in the future so coming to the point will you explain how to stay update of the technologies and for every 6 months spring team changing the methods and a lot so my question is how are you able to stay update with that if you don't mind will you explain this please brother

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

      I really appreciate the feedback

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

    Thanks a lot, you are really inspiring and motivating me with your sharing and guidance.

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

      Thanks a lot bro.
      You’re my motivation

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

    Quick question:
    My app uses the /register route for registering users and requires following fields:
    name;
    dob;
    email;
    password;
    weight;
    goal;
    In one of your other videos You have for the /register fields only email and password.
    How would the registering with google work, if I need not only email and password information, but also other information about the user and stroing that in a database

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

      You request them as scopes and you will receive them in the token

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

    Great job 👍👍

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

      Happy you liked it

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

    Nice video. But what if I have a custom token using Auth0, and I want to limit or bind oauth2 login page response to only a specific endpoint?
    I tried something like that using Spring Security 6.3.0, and I couldn't figure it out yet.
    /login to my custom JWT and /OAuth2 to be the receptor of the Google login page.
    When I used oauth2Login, the login page responds even in non-existent endpoints

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

    Hi ali , appreciate your support .. can you update the method for the new spring security and adding it for jwt security ?
    Thank you

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน +1

      Updated

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

      ​@@BoualiAli
      In which video please ?😅

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

      @@kareemmosafi2117 check the spring security playlist

  • @user-xb1pu1tj7e
    @user-xb1pu1tj7e 2 หลายเดือนก่อน

    great content

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

    Subscribed -:) awesome content

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

      Happy to have you here 😁

  • @user-ku7dh7od7i
    @user-ku7dh7od7i ปีที่แล้ว +1

    wonderful video. Best teacher for spring boot. @Bouali Ali could you please make video for gateway + authentication-service(jwt) + other+services.
    means the user will ask other services through gateway.
    but gateway will allow or block the request by valider the token from authentication-service
    i use RestTemplate inside gateway to request authentication-service, but it does not work.

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

      I will publish a video like that soon

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

      @@BoualiAli t'est le meilleur

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

    how can i add this to my current custom register login with jwt ! and what do i save in the db if i dont have pw for the user

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

      better use keycloak.
      check the video in my channel.
      I will release a new one how to integrate it with spring boot and angular

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

    Thanks for the video it helped a lot .A question how can one customize the sign in page and thanks

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน +1

      Wait for the Keycloak video and you will never use another tool

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

    @BoualiAli where is the follow up video for custom Application authentication using springBoot?

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

      check the book social network playlist

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

    Thank you

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

      You're welcome

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

    Good content

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

      Really happy you liked it

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

    Great Content 📈

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

    Hi @Bouali Ali, this video is so informative and well explained each and every step, Thank you for making this video. Could you please make a video where linkedin and twitter used as social login platform instead of github and google that can be very useful for us. Please make a video on this topic, request from your subscriber

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

      Really happy you liked it
      Already preparing the content

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

      @@BoualiAli sound awesome ❤️

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

    Nice one... Can you please create video on sign up with apple

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

      It is the same concept

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

    Good job.

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

    Perfect video

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

    Thank you Ali for neat explanation.
    Your intellij setup is looking good, may I know which theme and icons pack are you using?

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

      Thanks for the feedback.
      This is new UI theme from the latest version of intellij

  • @MiguelSilva-ur9xd
    @MiguelSilva-ur9xd 8 หลายเดือนก่อน

    when i using google provider. why does it show me "[invalid_id_token] An error occurred while attempting to decode the Jwt: The ID Token contains invalid claims: {iat=date}" ?

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

    I liked the video and the explanation.
    Question: How can we control the user wether he's authorized to get ressource or not using the social auth. providers (school case: admin has full access and normal user have standard access) ?
    Thanks for responding.

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

      This role base auth,
      You can save the user info locally and based on that you can assign him a role.
      You can also use your own oauth 2 server like keycloack and there you can assign roles

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

    Thank you very much! Is it possible to make a video for setting up Signle Sign On auth server (SSO) with social login?

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

      Soon

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

    I have doubt like here like,
    whats the resource server in this?
    1. Spring Boot Application
    2. google/github resorces server.
    For OAuth usually the providers have the resources and these are authorized by the users so that the client application can access.
    Can you help me out?

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

    Very nice video. But what if you have for example react app on frontend/client that has regular form login with also social login.

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

      This is the next Oauth 2.0 video
      How to implement fullstack login

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

      @@BoualiAli looking forward to it!

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

      @@BoualiAli Also looking forward to that!

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

    You are great.

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

      Thank youu 🙏

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

    Could you please show different ways of applying or using of "rememberMe" in spring boot 3 (spring security 6)?

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

      I will make a video for that

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

    Great video Ali. But I don't understand something, we say that resource server is our backend app, the client (the one who wants access to the resource uri) is the browser, and authorization server is GitHub. But what exactly is the role of the application we created in github? Why we had to create this app and what is the relation with this app and our spring boot backend app? Also I didn't quite catch the clientId- secretId role. Thanks

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

      in order to be able to use Github as an ID provider

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

    thank you!!

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

      welcome

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

    I have to add this in my existing project , so when I add the dependency for oauth resource server in my Pom file it shows not found. Can you tell me how can I add ?

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

    Thanks always for your easy to understand videos.
    Quick question: I already have the jwt token authentication where a user signs up and the details are stored on my database, now i want to include the oauth2 authentication, where the user has an option to click on a sign in from google button. Would these two auth mechanisms be configured in thesame bean or they would have seperate beans for each? Also can I read the info of the user from google and save on my db?
    thanks in anticipation.

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

      You can have them both together.
      I’m working on a course that covers this two options with an angular frontend

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

      @@BoualiAli thanks a lot for responding. awaiting the course.

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

      @@BoualiAli would love to see this in Angular implementation too.

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

    Thank you for sharing. I have som questions: after I login by gmail successfully, How can I use the credentials to access other services in microservices? Do I need create new access token to return to frontend? how to generate access token after login successfully?

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

    Elegancko

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

      Happy you liked it

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

    i cant use the .Oauth2Login() in the security filter. please is there a new way to use Oauth in spring?

    • @BoualiAli
      @BoualiAli  4 หลายเดือนก่อน +1

      check today's video for a detailed answer

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

    Proud of you brother ;)

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

      Thank you so much brother. Happy to know that you still check on me

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

    Is it possible to build a service to support multiple external authorization services and then the service itself acts as an authorization service so that there is always only one auth server for the multiple oAuth clients?

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

    Please do a .video on Spring Security and Azure SSO.

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

    Where are you creating the front end page in this one,can you please explain it

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

      That page is automatically generated by spring

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

    Amazing sir, i follow your video about spring security. How can i add the capability login social media to Spring security with jwt before?

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

      I will publish it soon

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

      @@BoualiAli thank you sir. I wait your video

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

    I can't integrate OAuth2 in a Rest api secured with JWT.

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

    Naxt: Please make a video on If someone register in our app using social account then how that user details will be stored in our database.

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

    thanks a lot ! this was very helpful but I have a couple of question, how can you use a custom login form for OAuth2 and how can you combine OAuth2 and JWT mechanism ? Thanks a lot in advance

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

      Coming soon

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

    How can i make so that a frontend application can access the authorized backend data? I.e we authorize through backend login but then show this data in our front end?

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

      Just redirect the frontend to the login url

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

      @@BoualiAli so for example I have a end point @3000 for front end and auth page @8000 local host I redirect and login. It gets authorized for me but not the front end point @3000 I'm not sure if I'm explaining it that great and there may be a gap in my knowledge but that's the issue I'm facing

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

    Can you add logout feature (say from react by using fetch)

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

      soon

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

    Question : at 29:00 , why you choose desktop app and not web application ?

  • @aa-ip5vo
    @aa-ip5vo 5 หลายเดือนก่อน

    Hello i have register login with jwt now i want to add also social login can i make the user login and generate for him jwt token after successful login? and in the db what do i save if i dont have password since social login doesnt require pw hope you help and thanks.

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

    Great tutorial, what about open id connect? how to do authentication?

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

      I need to try that first and then I will let you know

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

    please create a video on OAuth 2.0 using Azure active directory using Graph API

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

    how to configure our own oauth (other than Google, Github, Facebook)? Did you make a video about that? thanks

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

      I will create one about keycloack soon

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

    Hello sir, you're doing great, in the next video, could you guild us how to build our own Auth2 server in Spring, and every time a resource server receives a request, resource server will talk to Auth2 sever to check if token is valid.

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

      Happy you liked it
      I will for sure

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

    Hello. Thanks for the video. I clone this project in my intellij and, with my google account, request loop on google oauth authentication and never give the controller answer "Hell OAuth2". It's a problem of ... something but what ? console app config ?.

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

      did you change the credentials?

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

      @@BoualiAli Sorry do not answer before. I must have made a mistake but I don't know what mistake. I started from scratch and it worked.

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

    excellent as always !
    can we use DaoAuthenticationProvider with Oauth 2 ? i mean 2 types of authentication

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

      The Oauth 2 is jwt based auth too. But the users are not stored on your side but on the auth provider side.
      I will create soon a video about keycloak and you will understand the oauth2 process much better

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

    @BoualiAli Thank you for this great video. I want to ask that is there a way this can be used to the app itself(Like the JWT) without going to the third-party app like facebook or github? Please tell me how.

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

      If I correctly understood you question, YES it is possible but you need to implement your own Auth server / resource server

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

    Hi, can you provide any solution to integrate OAuth2.0 with existing JWT?

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

    Thanks for this video. If its for the first time that client is visiting this endpoint and needs to have a user account, can we create a user account with OAuth2 login? And if so, how to do that?

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

      The user should create an account on (Github, facebook, ...) and the use it.
      Your application should not really care about that. It is totally up to the client to do that

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

    Vscode is saying basically everything in SecurityConfig is deprecated

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

      Personally, I don't consider VSC as the best IDE for Java development.
      The deprecations you see might be valid if you are using Spring boot 3.1 otherwise you can ignore them for the moment

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

    is there any difference between making spring boot project on spring initializr website and doing that inside intellij? In intellij we can also use spring initializr

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

      No difference. Both are calling the same API

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

    When can we expect a video with both OAuth2 and JWT Token? I'm stuck with this part and I can't seem to find a way to solve it

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

      I will try to record it ASAP

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

      @@BoualiAli Thank you for your time! Can't wait!

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

    Currently I'm using spring boot 2 version, Is this tutorial applicable for me?

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

      Yes

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

    can someone tell me how to authenticate this using frontend as react I am unable to do this with frontend someone please help me finding solution

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

      Wait for the keycloak video coming next week

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

    Hello Ali. Thanks for this video. But I have a question. I want to take google users info for example mail, name, surname etc. after this part. How can I do this?

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

      I'm already working on it.
      It will be released really soon