Spring Security 6 with Spring Boot and JWT Tutorial

Поділитися
Вставка
  • Опубліковано 26 лис 2024

КОМЕНТАРІ • 185

  • @proudtobehindu55
    @proudtobehindu55 3 місяці тому +61

    Only video which can explain spring security clearly. Nobody else explained like you

  • @hhhhh7457
    @hhhhh7457 3 місяці тому +23

    I liked this video so much that I literally turned off my adblocker to watch the ads and support you

  • @steveandro1810
    @steveandro1810 2 місяці тому +11

    @Telusko
    Use this to kill process on port
    3:01:43
    lsof -i tcp:
    kill -9

  • @saandeepkotte7012
    @saandeepkotte7012 Місяць тому +1

    Best tutorial on Spring security and JWT. No one can convince me otherwise. Every concept has been broken down to it's simplest form and explained step by step which makes it easier to understand. Kudos to you, Navin.

  • @sadhamhussain1694
    @sadhamhussain1694 3 місяці тому +5

    I don't know why when I see this man I'm getting more confidence in software development. Keep it up man! You made our day

    • @WorstinJava
      @WorstinJava Місяць тому +1

      He is Master and consistent , first keep u " keep it up "

  • @AnmolSingh-v9p
    @AnmolSingh-v9p 3 місяці тому +5

    This is hands down the best spring security tutorial out there guys.

  • @zohaibahmed5527
    @zohaibahmed5527 Місяць тому

    Only video which can explain spring security clearly. Nobody else explained like you, iam following you sir since 2017

  • @arvindrawat3641
    @arvindrawat3641 13 днів тому

    when creating a jwt token, you are setting the expiration as 60*60*30 milliseconds, we can set it as 1000*60*30 if we want the expiration as 30 min after 'iat'.
    Great tutorial to learn spring boot.

  • @koutsioj4762
    @koutsioj4762 Місяць тому +1

    Thank you very much for this video! I am trying to use JWT tokens in my Spring app which is something I haven't done before and when I was searching how to do it I didn't understand what was happening at all. Then I found this video and it's been super helpful! You've also managed to keep me quite focused despite how long the video is, which is impressive 😂

  • @mmk759
    @mmk759 Місяць тому +1

    Thank you, Navin sir, for your efforts to make our lives easy using Spring Boot and Spring Security. This video helped a lot. For any question related to Spring, Telusko is one stop for all. I request you to create a tutorial on creating our own OAuth server.
    THANK YOU!

  • @ibrahimhamid2981
    @ibrahimhamid2981 Місяць тому

    I have now conquered my fear of spring security through this your video. Thank you very much. It indeed a great tutorial on Spring Security.
    ❤❤❤❤❤ Much love sir

  • @rishimishra8530
    @rishimishra8530 Місяць тому +1

    Best tutorial for security. i have gone throgh many tutorial of other creators but this one is insane. Thanks for your effort Telusco

  • @ayoubabartal7328
    @ayoubabartal7328 24 дні тому

    the best Spring security Tutorial in the whole youtube , big thanks to you .

  • @juanliendo6652
    @juanliendo6652 21 день тому

    No doubt this is the best jwt in springboot tutorial. shared to my friends!

  • @abdocharrade1811
    @abdocharrade1811 2 місяці тому +1

    How a good lecture you gave. Thank you very much for all the work you're doing and contribution to the online community.
    Greetings from Germany :)

  • @codewithomardev
    @codewithomardev 29 днів тому

    Hey Telusko I've been learning Spring for about one year and I've been stuck in Security for about a month. Your video really helped me putting the pieces together and actually understand how everything works (: I come from reading a few books about spring security and this tutorial helped me like you have no idea

    • @Telusko
      @Telusko  28 днів тому +2

      Happy to hear that you were able to understand the concepts, and thanks for the appreciation!

  • @PranobKalita-l4b
    @PranobKalita-l4b 2 місяці тому +1

    Sir, the best video for spring security ...you explained every bit that i was using with half information. Thank you

  • @adolfoajucum5373
    @adolfoajucum5373 2 місяці тому +1

    Thank you,I just finished the video. It really helped me overcome my fear of authentication methods.

  • @HanaaAHamed
    @HanaaAHamed 3 місяці тому +1

    youre literally a legend. whenever im searching for a topic i always check your channel first! thank you for the amazing content!!

  • @spacetime_wanderer
    @spacetime_wanderer 3 місяці тому

    Navin sir, you make all videos very easy to approach. I was very scared of Spring and don't know much. But I was able to understand basics of Spring Security from first 1 hour that I have watched. Thank you! Hoping to finish the rest and try it out for my app.

  • @technicaltutionwala
    @technicaltutionwala 3 місяці тому +58

    Sir, please teach us payment gateway integration using Spring Boot. Please🙏

    • @inderacademy7101
      @inderacademy7101 2 місяці тому +5

      Bro use your own mind
      There are hundreds of tutorials out there
      You can easily integrate by following any tutorial Or documentation

    • @mahajveemahajvee8941
      @mahajveemahajvee8941 26 днів тому

      Read books they are great recommendation :- Manning publications

  • @ridwanray
    @ridwanray 3 місяці тому +1

    Telusko to the World. One of the best tech channels here

  • @jasurbekxamroyev2399
    @jasurbekxamroyev2399 12 днів тому

    Hats off, perfect explanation for the new Spring Security 6

  • @ayushjaiswal17
    @ayushjaiswal17 11 днів тому

    You are a great teacher .Thank you so much for explaining so clearly

  • @balazsmakrai8599
    @balazsmakrai8599 2 місяці тому

    I love the way you explain things. Even the difficult parts are easy to understand

  • @faizquazi292
    @faizquazi292 3 місяці тому

    This is very good. Difference I found between other videos is the content. Sir gives content in very detail and clears all the concepts and I really found it very helpful. Thank you so much Navin Sir.❤❤❤

  • @rahul-java-dev
    @rahul-java-dev 3 місяці тому

    Thank you so much Sir.... You are always there to support the Java devs. Love you so much ❤❤❤

  • @mahbubulhasan3128
    @mahbubulhasan3128 2 дні тому

    I am from Bangladesh. You are a great man. Thank you so much.

  • @AyanBhattacherjee-x9j
    @AyanBhattacherjee-x9j 2 місяці тому

    Concept is totally Cleared... Love you sir for such tremendous effort. ❤❤❤ I am benefited a lot from this oneliner marathon video...

  • @CodingMitTommy
    @CodingMitTommy Місяць тому

    Thank you from Germany. I love your Spring Security Tutorial!!!

  • @kedmonmaquiz
    @kedmonmaquiz 3 місяці тому +1

    Simply! the best spring security course video

  • @privateryan3136
    @privateryan3136 2 місяці тому

    This video is amazing! You have very good teaching skills, the concepts you explain are very easy to understand. Thank you for your work!

  • @NghiLam-bn3eh
    @NghiLam-bn3eh 2 місяці тому

    Thank you sir! Now I can apply Spring Security to my personal project. Your tutorial is very easy to understand sir .🙏

  • @nilanahansaja21
    @nilanahansaja21 24 дні тому

    Best Tutorial I've ever seen. Thank you :)

  • @aishwarydangre2936
    @aishwarydangre2936 2 місяці тому

    Sir you nailed it - Best Spring Security 6 Tutorial 🤩🤩

  • @justreason5868
    @justreason5868 2 місяці тому

    Thanks so much for this great piece of work. In my view, the best explanation of Spring Security, token generation and validation; as well as the concept of authentication for the delivery of secured Restful services.

  • @JeevanMalviya-n3b
    @JeevanMalviya-n3b Місяць тому

    At 1:30:08 you laughed and said create your own class in a sarcasm, i liked that.

  • @icoomkarbiradar6636
    @icoomkarbiradar6636 3 місяці тому +1

    Thank you so much sir for this much needed series🙏

  • @sweditmajgaonkar
    @sweditmajgaonkar 2 місяці тому +1

    Hello Telusko,
    First off all thank you for making tech videos it always helpful and because of this video i learn lot.
    One more thing you ask for the kill port which is in use by service so i am pasting some steps here, you are best teacher but may be it will be helpful for others you are very intelligent.🤩 Thank you for making videos on tech lang.
    Here are the commands
    COMMAND TO KILL PID USING PORT:-
    1. Run the CMD as administrator and
    i) find out the port services running.
    ii) perform following commands.
    >netstat -a -n -o | find "portnumber"
    2. to kill PID
    >taskkill /PID pidNumber /F

  • @Sky_feb
    @Sky_feb 2 місяці тому +1

    Happy Teacher's day sir ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

  • @madner201
    @madner201 12 годин тому

    An excellent course. Thank you very much

  • @itxpphere
    @itxpphere 27 днів тому

    Thank you so much sir!! You are great!! Hats off!! Great Video!!🙏🙏🙏🙏

  • @AkshayAgarwalCoding
    @AkshayAgarwalCoding Місяць тому +2

    Hi Navin Sir,
    Once again great explanations, great learning, thank you for that.
    .
    This was really overwhelming topic, but as you said, we have to do these configuration only once, that was relief. :)
    From here should we start learning about microservices, or should we stop and create some projects, play around with spring/hibernate and spring security?

  • @vishalkushwaha6879
    @vishalkushwaha6879 2 місяці тому

    Such a good content and tells each and every point very clearly thanks sir❤❤❤

  • @ladybird5091
    @ladybird5091 2 місяці тому

    your explanation is so easy to understand. thank you.

  • @sureshkannan6313
    @sureshkannan6313 2 місяці тому

    Thank you so much for the nice explanation...follower since 2019

  • @IndraKurniawan
    @IndraKurniawan 3 місяці тому +1

    Very useful! I'm expecting other programming related too!

    • @ridwanray
      @ridwanray 3 місяці тому

      You may want to check Python

  • @tejpalkhachane1965
    @tejpalkhachane1965 3 місяці тому +2

    This is very gr8 video, thanks, the video would shine more if you can add all the blocks involved like filters, auth manager, dao, jst auth provider.
    pls make an video on authorization as well.
    Thanks Navin🎉🎉

  • @MattsBarbosa
    @MattsBarbosa Місяць тому

    TELUSKO IS THE MAN!!!

  • @Hidden..03
    @Hidden..03 9 днів тому

    I buyed udemy course of telusko...feels like UA-cam content is much better...there it's feel like you were in hurry 😂

  • @sathishkumarr7106
    @sathishkumarr7106 Місяць тому

    Good job Navin.

  • @hrishikeshgadhe7489
    @hrishikeshgadhe7489 3 місяці тому +1

    Thank you for sharing this great knowledge sir🙏

  • @AdelitoTeca-mi6xg
    @AdelitoTeca-mi6xg 3 місяці тому

    Well on time, I was looking for this all day long

  • @muhammed_adnan8408
    @muhammed_adnan8408 18 днів тому

    Hi sir, you're absolutely genious❤

  • @testtest-rv8wx
    @testtest-rv8wx Місяць тому

    sir, you did it very good. kindly make a more detail video/series of spring security other features if possible. thank you

  • @vukkumsp
    @vukkumsp 14 днів тому

    If we use oauth2 authorization server starter dependency, it gives JwtEncoder and JwtDecoder making the encoding and decoding the JWT token very easy. But, doing manual way gives more understanding of the process.

  • @ChintamaniTripathy
    @ChintamaniTripathy 3 місяці тому

    Great work with nice explanation !

  • @GuitarMusicWithRaj
    @GuitarMusicWithRaj 7 днів тому +1

    The validateToken method compares the username from token and the one from userDetails. They will always be the same. if the user is found in the database, these two will always be the same. The userDetails object is coming from the same username you extracted earlier. So what is this validateToken really doing. Especially the first part of the condition?

  • @ankushrai9522
    @ankushrai9522 3 місяці тому +1

    Need one video on Hibernate and ORM theory.🙏

  • @i7asn
    @i7asn Місяць тому

    Thank you man, you are my hero!

  • @talgarmarlis
    @talgarmarlis 2 місяці тому

    Great tutorial! Awesome

  • @josephmaged5470
    @josephmaged5470 2 місяці тому

    Wow, great video thank you so much for your effort

  • @genericstospecifics1856
    @genericstospecifics1856 2 місяці тому +1

    I was scared of this topic thanks for making such an informative video
    Just finished the last part and for some reason even after adding the second oauth client github. I don't see it on the UI, although I was trying to do this on my own little project.

  • @mohammedarsacm6236
    @mohammedarsacm6236 21 день тому +1

    bro do a video on security on microservices , for different architecture , best practise etc ....

  • @NeoTechVision101
    @NeoTechVision101 3 місяці тому +3

    Sir, can you make a video on tips on how to read documentations? I was trying to read the spring security documentation but it is very confusing unlike how you teaches it. It will be a great help if you will, thank you in advance!

    • @ridwanray
      @ridwanray 3 місяці тому +2

      Honest truth: Documentation is where those knowledge are taken but it requires some level of understanding and expertise. Not meant for an absolute beginner

  • @Vandana_Kathula
    @Vandana_Kathula 2 місяці тому

    Happy teachers day sir 🎉😊

  • @venkataswamyb-u6n
    @venkataswamyb-u6n 15 днів тому

    At 1:53:00, some may encounter a cyclic dependency error at startup. To avoid this, define a single instance of BCryptPasswordEncoder as a @Bean in a configuration class, ensuring the same instance is injected in both places

  • @increment-
    @increment- Місяць тому

    thanks for this tutorial!

  • @saadkhan6247
    @saadkhan6247 3 місяці тому +1

    Can you make video on frontend (react) demonstrating the use of JWT?

  • @rryann088
    @rryann088 3 місяці тому

    JUST I N TIME TUTORIAL! Thanks!

  • @mertkaraman06
    @mertkaraman06 12 днів тому

    Sir thanks for the great video.
    After the end of the tutorial I tried to login and manager part becomes unnecessary.
    How can we go with basic auth for login?

  • @VermaSumit_1
    @VermaSumit_1 2 місяці тому

    44:45 Best part

  • @vijeyakumarvineescar8439
    @vijeyakumarvineescar8439 19 днів тому

    Thank you so much!!!

  • @vukkumsp
    @vukkumsp 24 дні тому

    2:58:00 I have one question: If anyone can hold of the username and the algorithm used by this service to generate key then they can easily spoof the JWT token by generating their own right? I thought when user logged in first time, the password is also used in the process of key generation to make the key unique but it is not the case here !

  • @261tariq
    @261tariq Місяць тому

    Awesome!

  • @shricharanramesh7149
    @shricharanramesh7149 3 місяці тому

    Great job sir ❤🎉

  • @KamuranDehliz
    @KamuranDehliz 2 місяці тому

    It sounds nice and understandable, but you missed the refresh token, which is really important for both JWT token security and user experience. Without a refresh token, users would need to log in more frequently, leading to a less seamless experience. Additionally, the refresh token helps maintain security by allowing for token renewal without requiring the user to re-authenticate constantly.

  • @bhantubharti8292
    @bhantubharti8292 Місяць тому

    Thanks for upload this video its very useful. please upload using ldap if possible

  • @yavuz7744
    @yavuz7744 3 місяці тому

    Thanks for everything

  • @shivamtyagi7106
    @shivamtyagi7106 Місяць тому

    FYI, 2:13:15... it doesn't work without jackson converter

  • @silentknight6076
    @silentknight6076 Місяць тому

    Day 3 of asking please make a video with integrating keycloak

  • @vipinchandra3354
    @vipinchandra3354 3 місяці тому +1

    the csrf token is not working and it still says aunthorized when trying to get csrftoken

  • @shafirkanit521
    @shafirkanit521 3 місяці тому

    The best video

  • @CinemaClarity07
    @CinemaClarity07 3 місяці тому

    Sir aap ne hindi channel par java ki playlist start ki usko pura nahi kiya fir aap ne spring boot playlist start ki usko bhi pura nahi kiya....?

  • @silentknight6076
    @silentknight6076 Місяць тому

    Day 2 of asking please make a video with integrating keycloak or oauth2

  • @AbdullohHamidullayev-qm3ls
    @AbdullohHamidullayev-qm3ls Місяць тому

    thanks

  • @sriharisamudrala2105
    @sriharisamudrala2105 3 місяці тому

    Thankyou so much ❤

  • @young0312
    @young0312 3 місяці тому

    good video. could you make a tutorial on refresh token? like the lifecycle, how to use it securely etc

  • @sumitsehgal5526
    @sumitsehgal5526 2 місяці тому

    you come here in the youtube that you are soo knowledable i know it already bhai tumhara kuch samjh nahi atta hai

  • @mnopxyz
    @mnopxyz 3 місяці тому

    great video but one doubt: if for verifying token we are using db (making db call) then there is no point of using token. we can directly send username and password in every req and everytime we get that user from db and verify like we are doing for validating token.

  • @aungnaingtun4431
    @aungnaingtun4431 2 місяці тому

    u r rock

  • @Sooraj09073
    @Sooraj09073 2 дні тому

    Is this works if jwt generation in one microservice and validation in another

  • @piyushmahajan7
    @piyushmahajan7 3 місяці тому

    Sir i just passed my 12th and going to college this year which branch I choose aiml and aids sir which branch has better future?

  • @silentknight6076
    @silentknight6076 Місяць тому

    It would be great if you can integrate Keycloak as well Navin sir. Hoping for it finger crossed.

  • @AR-nw6dv
    @AR-nw6dv 2 місяці тому +1

    in 2 hour i am trying to register still it is giving me exception like user not register

  • @shekelboi
    @shekelboi 8 днів тому

    1:25:10 you're right sir, user is already taken, I tried that originally and it gave me a syntax error.

  • @naveenanuradha2291
    @naveenanuradha2291 3 місяці тому +1

    Sir,why all method endpoints will raise authentication error?

  • @vishalassija4448
    @vishalassija4448 3 місяці тому

    Thanks for sharing this JWT security video. It was really helpful. Can you please also help with "logout" code here.

  • @MeenuLloyd
    @MeenuLloyd 3 місяці тому

    Sir, please do video regarding spring data jpa pagination and spring validation

  • @mrutyunjaysambalad9548
    @mrutyunjaysambalad9548 2 місяці тому

    hi navin i ma new to configures the security project to existing project and with front as well
    coul please upload video how to configure with front end