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

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

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

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

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

  • @rajrajesh1669
    @rajrajesh1669 25 วันที่ผ่านมา +2

    Love this, I have been stuck at this oAuth and JWT for more than 3 days trying to learn this concept, Came across multiple tutorials but none of them make sense but this video is really helpful for me.
    Alhamdulillah, May Allah reward you for your work.

    • @blaisemugisha8990
      @blaisemugisha8990 17 วันที่ผ่านมา

      Hey bro did it work well? if yes did you use the react + springboot stack?

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

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

  • @reon_fernandes
    @reon_fernandes 23 วันที่ผ่านมา

    Thanks a lot for the video. It was very helpful. I have learned a lot about Spring Boot and JPA from your channel.

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

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

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

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

    • @S.APerera-nq9lf
      @S.APerera-nq9lf หลายเดือนก่อน

      @@BoualiAlistill no video on this?

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

      Great to hear!

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

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

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

    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

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

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

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

      Glad you think so!

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

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

    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.

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

    zo'r chiqibti👍👍👍👍

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

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

    Thank you. Very userful for beginners.

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

      Happy you liked it

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

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

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

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

    9:41 amazing diagram to understand.

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

    Excellent explanation 🙌🏻 Keep videos like this coming 🙌🏻

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

      Absolutely
      Thank you for the feedback

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

    Thank you So much , Like before watching

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

      So nice of you

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

    Great content aloulou, thank you so much bro

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

      Ny pleasure bro

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

    Well explained. Thank you Ali

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

      Really happy you liked it

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

    Excellent video! Thank you!

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

      Glad you liked it!

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

    Thanks for sharing Ali

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

    You are great teacher.

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

      Thank you! 😃

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

    Thank you so much
    your video helped me alot.

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

      You're welcome!

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

    Thank you so much for this video.

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

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

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

      Thanks
      Really happy to know that

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

    Subscribed -:) awesome content

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

      Happy to have you here 😁

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

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

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

    Great job 👍👍

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

      Happy you liked it

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

    Proud of you brother ;)

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

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

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

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

      I will try to cover it ASAP

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

    Thank you so much for this video

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

      You're so welcome!

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

    Great Content 📈

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

    Linking the link in the description lol Thanks Alibou..

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

      Happy you liked it!

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

    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 ?

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

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

    Good content

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

      Really happy you liked it

  • @joeLinton-w1p
    @joeLinton-w1p 6 หลายเดือนก่อน

    great content

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

    Thank you for explanation

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

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

      I really appreciate the feedback

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

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

      Already uploaded

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

    Can I use this dependency spring-boot-starter-oauth2-client for application with React client? Or It's just for requests from resource server and I need to use spring-boot-starter-oauth2-resource-server to interact with React client in that case? I will be happy to hear about it)) Thanks for the video)

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

    Perfect video

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

    thank you so muchh

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

    Good job.

  • @aa-ip5vo
    @aa-ip5vo 10 หลายเดือนก่อน +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  9 หลายเดือนก่อน

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

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

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

    You are great.

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

      Thank youu 🙏

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

    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

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

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

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

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

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

      It is the same concept

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

    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  9 หลายเดือนก่อน +1

      Updated

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

      ​@@BoualiAli
      In which video please ?😅

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

      @@kareemmosafi2117 check the spring security playlist

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

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

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

      check the book social network playlist

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

    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?

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

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

      Thanks, will do!

  • @MiguelSilva-ur9xd
    @MiguelSilva-ur9xd ปีที่แล้ว

    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}" ?

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

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

  • @闲话加拿大小新
    @闲话加拿大小新 ปีที่แล้ว +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.

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

    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  8 หลายเดือนก่อน +1

      keycloak video is coming next week

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

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

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

    Elegancko

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

      Happy you liked it

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

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

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

    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 ?

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

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

    Thank you

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

      You're welcome

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

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

    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?

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

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

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

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

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

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

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

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

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

    thank you!!

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

      welcome

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

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

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

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

  • @ioanaserban-iz3gm
    @ioanaserban-iz3gm ปีที่แล้ว

    @BoualiAli at this point 30:00 Create a demo controller, i don't get the password in console but 2023-12-26T10:18:26.884+02:00 TRACE 20820 --- [ main] eGlobalAuthenticationAutowiredConfigurer : Eagerly initializing {org.springframework.boot.autoconfigure.security.servlet.SpringBootWebSecurityConfiguration$WebSecurityEnablerConfiguration=org.springframework.boot.autoconfigure.security.servlet.SpringBootWebSecurityConfiguration$WebSecurityEnablerConfiguration@7a04f730}
    2023-12-26T10:18:26.885+02:00 DEBUG 20820 --- [ main] swordEncoderAuthenticationManagerBuilder : No authenticationProviders and no parentAuthenticationManager defined. Returning null......what am i doing wrong ?

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

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

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

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

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

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

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

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

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

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

    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.

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

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

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

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

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

    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

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

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

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

      check today's video for a detailed answer

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

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

      Just redirect the frontend to the login url

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

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

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

      I will publish it soon

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

      @@BoualiAli thank you sir. I wait your video

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

    Thank you so much.
    HttpSecurity.oauth2Login() is deprecated and marked for deletion. How to change the implementation?

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

      I will create new videos to show how to upgrade to Spring boot 3.1 for both WT and OAuth2

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

      @@BoualiAli Thank you so much for all the content you are providing.

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

      replace .oauth2Login() with .oauth2Login(oauth -> {})
      if you want to add more logic you can do it inside the lambda expression ! hope this helps !

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

      Hi @khalilbouali3480, thank you so much for your answer! I really appreciate your help and guidance. Your explanation was clear and easy to understand. I'm grateful for your support. Thanks again!

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

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

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

      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!

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

    can we use oauth2 with authorization code grant type with native mobile app
    if yes should it make sense that mobile app redirect us to the authorization server login page?

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

      Yes you can.
      Yes it makes sense (already exists on many mobile apps)

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

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

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

    in oauth 2.0 open id can we use along with jwt token or is it must be a seperate? so if we might be use jwt + oauth2.0 there is must be another configuration? can you refer me? thank you in advance

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

      you can use both together