Spring Boot 3.0 + Spring Security 6 | JWT Authentication & Authorization | JavaTechie

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025
  • In this video, you'll learn how to implement JWT authentication and authorization in a Spring Boot 3.0 application using Spring Security 6
    You'll see how easy it is to secure your application and protect your endpoints using JSON Web Tokens Step by Step guides
    #JWT #SpringBoot #SpringSecurity #JavaTechie
    Spring boot microservice Live course Just started (Recordings available)
    Hurry-up & Register today itself!
    COURSE LINK : javatechie5246...
    PROMO CODE : Java40
    Spring boot 3.0 security :
    • Spring Boot 3.0 Securi...
    Encryption Key Generator :
    www.allkeysgen...
    GitHub:
    github.com/Jav...
    Blogs:
    / javatechie
    Facebook:
    / javatechie
    guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
    Disclaimer/Policy:
    --------------------------------
    Note : All uploaded content in this channel is mine and its not copied from any community ,
    you are free to use source code from above mentioned GitHub account

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

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

    Спасибо!

  • @Thiru-zt5lw
    @Thiru-zt5lw 2 ปีที่แล้ว +46

    Bro i don't know who are you.. you are God's gift. I am search for a job.. once I got it..I will give super thanks to you

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

      Thanks buddy 😊 . Keep learning

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

      Did you got job ?

    • @Thiru-zt5lw
      @Thiru-zt5lw ปีที่แล้ว +3

      @dipakkale2723 yes..already enrolled in his courses..

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

      Did you get the job.

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

      He is Basant Hota

  • @pranaypaul6361
    @pranaypaul6361 7 หลายเดือนก่อน +2

    haven't found anything simpler on JWT Authentication & Authorization than this video! Kudos. You're so so important for the community! Keep making such videos please.

  • @GokulCodeFactory
    @GokulCodeFactory ปีที่แล้ว +23

    What a man you are ? It's not only tutorial for security .It's the night mare for me to achieve security in spring application.Hats off keep the learning spell always on.Thanks a lot!🌟

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

      Thank you so much Gokul . Glad to hear that 😊 . Keep learning

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

      ".It's the night mare for me to achieve security in spring application." ,, ...... really ?

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

      @Supriya are you facing any issue?

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

    One thing I can say..........the best channel I have ever seen....thank u so much sir

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

    🎯 Key Takeaways for quick navigation:
    00:00 📹 This video tutorial covers implementing a refresh token mechanism in a Spring Boot application with JSON Web Tokens (JWT).
    03:18 🛡️ Refresh tokens enhance the security of JWT authentication by allowing users to obtain new access tokens without re-entering credentials.
    05:45 💼 The tutorial demonstrates how to configure and use Spring Security 6 for managing JWT-based authentication and authorization in a Spring Boot project.
    08:20 🤖 You'll learn about the importance of token expiration times, token stores, and token revocation for effective JWT authentication.
    12:10 🔐 Implementing a refresh token mechanism is crucial for maintaining secure and seamless user sessions in Spring Boot applications.
    Made with HARPA AI

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

    Hats off to you sir You literally made Spring Security Easy. I've gone through many lengthy videos but nothing worked your spring security videos made me learn within 2hrs including jwt and basic auth.

  • @ashokkumary11
    @ashokkumary11 2 หลายเดือนก่อน +1

    Basanth,
    All your courses are simple, straight forward, easy to understand for all levels. Kudos to your efforts.💯

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

    I never thought i would be able to understand JWT until i found this video. you really Blessing to us

  • @karthikshankar5618
    @karthikshankar5618 ปีที่แล้ว +14

    I have been binge watching many videos on JWT authentication and luckily found this video, you are simply amazing with the way of delivering things sir, thanks a lot and more power to you to roll out such amazing videos in the future

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

      Thank you so much Karthik for appreciating it . I am glad to hear that people are getting benefitted with my content

  • @rakeshchavan7839
    @rakeshchavan7839 6 หลายเดือนก่อน +4

    Crystal clear explanation and implementation. No need to watch any other video after this.
    Thank you.

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

      Thanks buddy keep learning 👍

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

    Thanks for the video. I did learn a lot from it.
    A few points: 1. the authentication manager is not recommended although it works, you should come up with your own authentication manager. 2. there is a new nimbus package in the latest Spring security which should be used for encoder and decoder. 3. that filter is not necessary as I understand. You simply provide the encoder and decoder, spring security will automatically take care of the security check for all the configured paths.

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

      Thank you for your suggestion buddy. I will definitely take a look into these changes

    • @RN-jo8zt
      @RN-jo8zt ปีที่แล้ว

      you mean bcryptpasswordencoder?

  • @SundararajanEaswaran
    @SundararajanEaswaran 2 หลายเดือนก่อน +1

    Your communication is OK kind. But your content, efforts, presentation are really awesome. Keep up your good work sir

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

    Sir, thank a lot for your contribution. I have searched so many methods to implement JWT on my project running on Spring 3.1.5 but couldn't find a proper solution. We need more videos on new releases like this. Thanks a lot!!!🤩

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

    Simply amazing Sir. I was struggling for authorization configuration in springboot 3.2.0. You have covered it well.

  • @sonukumar-of4pq
    @sonukumar-of4pq 3 หลายเดือนก่อน +1

    Sir G- i believe you are saving the life of more than 95% programmer who is getting through your sessions. Because i am damm sure, eventually the search for a good content could have end up to one and only your session.. Thanks Man..

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

      Thank you so much sonu for your word. Keep learning that's what my gift 🎁 buddy

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

    Great tutorial those who are moving spring security 6. Awesome! job.

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

    Starting to learn Spring Boot security now, Thanks for your effort as always.

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

    incredible! didn't expect to find usage ready solution here, but you nailed it. thanks!

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

    I appreciate the detailed description of this video. Thanks for sharing.

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

    Wanted to add one point: if we are generating token only when user register or login then in validation process, we can skip fetching user details from db because if the token is modified then it will be invalid token when we match it using our secret. So, If the token is valid then we can save it to our security context always.This is my understanding. Please add to it if something is incorrect or I am missing something.

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

    this happens the first time for me, i just needed a walkthrough in spring3 + jwt and spring security. and well, you provided it 22 minutes ago. +sub

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

      Suppose I have a spring boot application which is having multiple instances running (lets say 3 instances are running), and I have a scheduler which is suppose generating a report after every 1 hour, so now my scheduler will start generating the same report for every instance of my application (so it will generate 3 report in total) and which is a wrong thing, so how can we handle such scenario. How to make our scheduler generate only 1 report even if 3 instances are running.
      Today an interviewer asked this question to me and I was clueless about it. Pls help.

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

      @@kshitijbansal3672 holy ffffu. it's more like:
      - how many hours did you mess with spring framework, tinkering here and there?
      - yes

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

      @@kiryls1207 if you know the solution, you can, don't ask unnecessary questions

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

      @@kshitijbansal3672 i saw guides and tutorials about spring concurrency and threading. i don't know the solution, i just started with spring

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

      In that scenario you need to configure your scheduler related properties in only one instance
      For example let's say you have instance 1 ,2 and 3
      You want to run your scheduler only in instance 1 in that case create all properties of scheduler like cron expression, time zone etc only in instance 1 configuration
      When i say instance 1 configuration i mean just find a place where you can load required properties

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

    Really Your Tech Gem .. Hands of your clear explanation .. LOVE IT :)

  • @SUMITPal-bl2jm
    @SUMITPal-bl2jm ปีที่แล้ว +1

    Yr explanation is just amazing👍👍

  • @Mahmudulhasan-ts5hm
    @Mahmudulhasan-ts5hm ปีที่แล้ว +1

    thanks, great video. I have followed lots of youtube videos only this code working properly. thanks again.

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

    No words Mind Blowing session

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

    Sir, plz provide flow diagrams of each classes before you code. And also include entire flow with all classes as summary at the end and if possible at very begining. You know the flow, so you find it super easy naming classes, but its tough for any beginners as classes names are big and similar. My hostel juniors gave me this feedback when I shared them ur lecture.

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

      Thanks Raj for your suggestion. Noted this and will work on it

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

      Nevertheless, it's a big-time first-class tutorial regardless.

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

      Yes. This is the only thing this tutorial is missing.

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

    Watching your complete series because of the migration project, Thanks a lot again

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

    Really helped me for my internship

  • @Adeel-Verse..
    @Adeel-Verse.. 2 ปีที่แล้ว +1

    Thankyou so much for this
    I have got a task to build jwt auth
    This will be very helpful for me

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

    Nice explanation.......❤

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

    Another nice explanation video ❤

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

    Just amazing as always. May God bless you.

  • @Mohamad-q2p8v
    @Mohamad-q2p8v ปีที่แล้ว +1

    I have learned everything I needed to learn, thanks a lot man

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

    Thanks basant for the detailed video about jwt

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

    Oh wow , thank you so much sir .. i was thinking to request you for this spring security jwt and just found it now . Great ,will cover this in this weekend,thank you 😊

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

      Suppose I have a spring boot application which is having multiple instances running (lets say 3 instances are running), and I have a scheduler which is suppose generating a report after every 1 hour, so now my scheduler will start generating the same report for every instance of my application (so it will generate 3 report in total) and which is a wrong thing, so how can we handle such scenario. How to make our scheduler generate only 1 report even if 3 instances are running.
      Today an interviewer asked this question to me and I was clueless about it. Pls help.

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

    as per my understanding we should not hit db again for jwt token validation and we should recreate token with given header and payload and compare it with resent token, however i understand we can not verify roles with that, so there is some gap in this and i am not sure yet how that will be done.

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

      We do validate roles with annotation @PreAuthorize

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

      JWT (JSON Web Tokens) are designed to be self-contained, containing all the necessary information within the token itself. Once a user is authenticated and a JWT is issued, the server can verify the token's integrity and extract relevant information without needing to contact the user database for every request. I see in our example we fetched data from user details db again which may not be right way to use jwt as the purpose of using jwt is to avoid hitting db/cache for every login request, please clarify@@Javatechie

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

      ​​@@JavatechieYes, I too didn't understood couple of things-
      1. Y u r generating token through a rest end point via @requestBody param? I think It sud b generated via filter u created. If(extractedToken= null) then create json token and should be set in context..or?
      2. In ur filter, u r using userDetailService.loadUserByUserName(username) ..this username is same u extracted from ur token? Then, obviously both will be validated? Instead u should match user from token with the logged on user?

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

    bro just nailed it

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

    Amazing video with covering all the aspect of JWT in latest version of spring boot.
    Thank you for the in detailed walkthrough.
    Please make one video on internals of spring boot security internals with new classes in involved latest version

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

      Glad it was helpful! Yes it's in my queue soon i will do that

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

    This is very right way explain.

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

    Thanks for choosing this topic. And make a Oauth 2 verification video in spring boot 3

  • @ApurvTripathi-mc3iy
    @ApurvTripathi-mc3iy ปีที่แล้ว +1

    Amazing video, you made so easy, understood every part

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

    Thanks , your tutorial clips are the best.

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

      Thank you buddy 😊

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

    Great explanation sir thanks lot

  • @ChamaraBandara-t9b
    @ChamaraBandara-t9b ปีที่แล้ว +1

    Excellent! Love it

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

    Thank you very much ❤

  • @ganny9305
    @ganny9305 3 หลายเดือนก่อน +1

    Really helpful thanks.

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

    Worth watching your videos

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

    amazing tutorial!

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

    Nicely covered both authentication and authorization.

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

    Nice tutorial sir

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

    Your explanation is really good, thanks for making tutorial

  • @prem-q6q6w
    @prem-q6q6w 10 หลายเดือนก่อน

    Well explained 🙂

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

    Love the popping sounds

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

    Thank you sir for this video. It is really very helpful.

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

    Present when needed. Thank you!

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

    Nice ...keep posting some complex spring boot projects...

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

    thank you man, that was very helpful

  • @SADDAMHUSSAIN-wy5kf
    @SADDAMHUSSAIN-wy5kf ปีที่แล้ว +2

    Perfect Example for Spring Securrity !
    Sir can you please guide how @PostMapping("/authenticate") end point is working internally? How it reading user from DataBase! although we are not using any repository in this end point. How AuthenticationMangar finds the correct user name from database?

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

      It will be dead easy to understand if you can debug then nothing complex buddy.
      I would strongly suggest you to refer to the video below to understand the internal flow
      th-cam.com/video/1ERV-6cz2xk/w-d-xo.html

    • @SADDAMHUSSAIN-wy5kf
      @SADDAMHUSSAIN-wy5kf ปีที่แล้ว +1

      ​@@Javatechiewow luckely I was already wathcing it ! Thank you so much for your respone ! Thank you again for making things very simpliers

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

    Thank you sir, more videos , I'm beginner :)

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

    Excellent video. I also wanted to know how to implement logout. Can you show a sample with the same example?

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

    Thanks Buddy, can you make a video integrating jwt on api gateway

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

      Please check this th-cam.com/video/qODoDq5_hAM/w-d-xo.html

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

    Thank you for this, is there a chance of you making a full stack tutorial with Java and React in future. It will be really helpful.

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

      Yes I will

  • @yogeshpatil-vx2pi
    @yogeshpatil-vx2pi ปีที่แล้ว +2

    Thats a great stuff as always :) . .. One request to you ..can you create one video on Spring Security OAuth Authorization Server using spring boot 3.0 .. Thanks again.. keep up good work :)

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

    i from vietnam, thanks your video

  • @karthikgaddam831
    @karthikgaddam831 2 หลายเดือนก่อน +1

    Thanks , love it

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

    Hats Off sir!

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

    Greate explanation sir! as always 🙏🙏.

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

    ❤Great demo

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

    very nice explanation

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

    Best Tutorial ever bro thank you somuch

  • @SandeepPrajapati-xu9ru
    @SandeepPrajapati-xu9ru ปีที่แล้ว +1

    such great tutorial, explained in simple way, help be crash course through it and build a new micro service implementing spring JWT authentication, thank you so much

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

      Thanks buddy, What are you looking for here it is th-cam.com/video/MWvnmyLRUik/w-d-xo.html

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

    Very good content. Thank you very much!

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

    Great video, thanks for all the explanation!

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

    Hi Basant,
    It’s a nice content but my question is in our project how do we generate secret key and where do we store and how to access it.Plz let me know.Thanks

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

      Usually your application must be integrated with the UI right? So from the UI when the user login for the first time the backend will generate the token and send it back to the ui then going forward ui will attach that token to the session or cookies

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

      @@Javatechie yeah that’s ohk but query is how do we generate secret key not token and where do we store and how to access it.I am not asking about the jwt token .Plz let me know.Thanks

  • @HarishKumar-vz4if
    @HarishKumar-vz4if ปีที่แล้ว +1

    Can you please do this using Reactive approach, it will help us.

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

    Love you bro ! Thanks alottttt

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

    Hi, your videos are very helpful and I have a request that f possible will you please make a tutorial on FusionAuth with spring boot

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

      I am not aware that FusionAuth will check and update shortly

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

    Highly appreciated

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

    Awesome 😍

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

    great!!!

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

    Amazing. Thank you so much

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

    Hello Sir, Kudos to your effort of explaining the concepts so effortlessly !! I implemented the same using Spring Security 6.2.3, however, I am getting HTTP403 error for every request that I am trying to hit from postman (for both users). I am trying to identify what is getting messed up...Any thoughts (by any chance) on this weird behavior ?

  • @ayushgupta-pj5sq
    @ayushgupta-pj5sq ปีที่แล้ว +1

    you passed claims map empty (During token generation), what is the use of that i did n't get that point? can you please elaborate that little more.

  • @supriya.mallick
    @supriya.mallick 10 หลายเดือนก่อน

    Awesome ❤

  • @JuanEstebanNarvaez-e6y
    @JuanEstebanNarvaez-e6y ปีที่แล้ว +1

    Thank you so much master, te amo

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

    Thank you
    how can ADMIN and USER access same endpoint?

  • @SawanKumar-yg1em
    @SawanKumar-yg1em ปีที่แล้ว +1

    Thank you so much sir.

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

    Hi , I have a small request. Might be funny for some. Can you please create a small video on roadmap. Like roadmap for spring security, roadmap for spring boot or core. So that everyone can have a idea what to start first and what not.
    Thank you

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

      No it's not at all funny Budd y don't worry. spring boot road map i will prepare one video where i will cover all modules. Most probably this weekend or next okay

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

    @Javatechie : I like your videos, you are doing a great job.
    I just have one doubt here, we are extracting username from JWT token, then from that username we are fetching UserDetails, then we are matching username from JWT token with user name from UserDetails, but they both will always be same, isn't it?

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

      No we are fetching the username and then validating it in DB whether the user exists or not

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

      @@Javatechie but we are fetching username from db, so no need to validate again right ?

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

      Buddy you are asking while token generation or aurhenticate endpoint? Where is your confusion

  • @alitest-e4t
    @alitest-e4t 10 หลายเดือนก่อน

    thanks for excellent video

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

    Can you do a tutorial on using JWT authentication and Angular for the front end? I don't know if it's possible for you to do it, but I'm at roadblocks in trying to figure this out

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

    This is so well explained! Thank you!

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

    in this flow can we add authentication using goolge etc.?

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

      Yes absolutely we can

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

    do we have playlist for UI? using springboot as backend?
    Thymeleaf/any other ui tech
    for simple UIs ?

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

    Assuming backend just accept request that contain token. How can handle returned token from backend to use in all request of frontend(javaFX) that send to backend?
    My problem is handling token in frontend.

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

    hats off man

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

    A really nice explanation . Very helpful

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

    I implemented this JWT Authentication and Authorization, and when I call the endpoints via Postman everything works perfectly. The problem is that I'm trying to write unit tests for my controllers using JUnit 5, but all endpoints always throw 403 Forbidden. Even when I use the @WithMockUser annotation, the same problem continues.
    Does anyone know what the problem could be?
    Did someone who implemented this JWT Authentication and Authorization manage to do the unit tests for the controllers?

  • @Imaambasha-k8j
    @Imaambasha-k8j ปีที่แล้ว

    how authentication manager bean validation user credentials ,how it will know how is valid user as it was not connecting DB