Spring Boot and Spring Security with JWT including Access and Refresh Tokens 🔑

Ғылым және технология

In this tutorial you will learn how to secure backend applications using JWT, Spring Boot and Spring Security. You will implement JWT access and refresh tokens.
This is brought to you by GetArrays - / @getarrays
#springboot #springsecurity #jwt
🙊 Subscribe to Amigoscode - bit.ly/2HpF5V8
► Courses Available for free here - amigoscode.com/courses
► Join Private Facebook Group - / 456035171490753
► Join Discord - bit.ly/2wL029v
⭐ Table Of Contents ⭐
00:00 Intro
01:54 What is JWT
05:55 Spring Boot Backend
47:31 Spring Security
58:57 Authentication and Authorisation
01:10:22 JWT
01:49:28 JWT Refresh Token
🙊 Here are the goods for all my videos video:
► Recommended Books
Clean Code
- amzn.to/2UGDPlX
HTTP: The Definitive Guide
- amzn.to/2JDVi8s
Clean Architecture
- amzn.to/2xOBNXW
► Computer and Monitor
New Apple MacBook Pro
- amzn.to/3464Mmn
Dell 27 INCH Ultrasharp U2719D Monitor
- amzn.to/2xM3nW1
Double Arm Stand Desk Mount
- amzn.to/3aYKKfs
USB C Hub Multiport Adapter
- amzn.to/2Jz7NlL
► Camera Gear
Sony ILCE7M3B Full Frame Mirrorless Camera
- amzn.to/346QIJn
Sigma 16 mm F1.4 DC DN
- amzn.to/2wbic3Q
Sigma 33B965 30 mm F1.4 DC DC
- amzn.to/39G37Fd
Awesome Screen Saver
- github.com/JohnCoates/Aerial
IDE I use for coding
- Iterm
- VsCode
- GoLand
- IntelliJ
- Sublime
💯 You can also follow me here:
► Don't forget to subscribe | bit.ly/2HpF5V8
► Join Closed Facebook Group for discussion and early access videos and courses | bit.ly/2FbuIkx
► Follow me on Instagram | bit.ly/2TSkA9w
► Join Discord - bit.ly/2wL029v
❤️ Thanks for watching

Пікірлер: 880

  • @saywuat
    @saywuat2 жыл бұрын

    I'm impressed - you provided a full example of a JWT implementation. I can follow each step and you explain every step very well. Trying to look all of this stuff up by myself would have cost me months. THANK YOU, SIR!

  • @Kevinppaulo
    @Kevinppaulo2 жыл бұрын

    I just got back at studying Spring, and this video came in PERFRECT timing. Love your content, thank you!

  • @gficeis
    @gficeis2 жыл бұрын

    Simple, direct and efficient. You have the gift of explaining! Nothing more to say. Thank you sir!

  • @nunoaparicio4426
    @nunoaparicio44262 жыл бұрын

    Yesterday I was looking for this exact tutorial on your channel and today you upload this! Just perfect! Thanks 😁

  • @jafarsadik4335
    @jafarsadik43352 жыл бұрын

    His voice is so calm and soothing, it didn't stress me at all. Good job!

  • @yassinebousseha8191
    @yassinebousseha8191 Жыл бұрын

    after searching for clean and understandable explanation for 3 months i finally found the best one . nice & clean

  • @avm0101
    @avm0101 Жыл бұрын

    This is a fantastic tutorial. Even-though some of the concepts like "WebSecurityConfigurerAdapter" are deprecated, it was good to know. This is the first time I have actually understood the flow of authentication and authorization. Thank you.

  • @alfredomenezes8814
    @alfredomenezes88142 жыл бұрын

    Amazing tutorial, the best one about Spring Security and JWT I've seen so far, thank you very much for posting this for free!

  • @lts8683
    @lts86832 жыл бұрын

    Your video contains a lot of best practices, that's among things that distinguish it from other tutorials. Thank you and keep going.

  • @programmer4226
    @programmer42262 жыл бұрын

    Man you explain everything so well and in detail. Very few people on the internet do this. Thank you ! :)

  • @matheusbarreto7656
    @matheusbarreto7656 Жыл бұрын

    Man, you saved me. This is exactly I was looking for, with examples and the explanation of each line you're into.

  • @azizmavlyanov3145
    @azizmavlyanov31452 жыл бұрын

    As usual, your tutorial/course is awesome. Thank you so much!

  • @HouariZegai
    @HouariZegai2 жыл бұрын

    Amazing like always Nelson! Thanks for the richest content you provide to the community.

  • @DDHDTV
    @DDHDTV Жыл бұрын

    I'm already working as developer using Spring (at a major global company) but the code is so unstructured. What you're teaching is really clean and best practice.so good

  • @amarok3460
    @amarok34602 жыл бұрын

    Your videos are amazing I rarely saw such a good content with good explanations when it is needed. Great job and thank you!

  • @Yiliu
    @Yiliu2 жыл бұрын

    That's perfectly matched what I need! Thanks for the high-quality tutorial.

  • @anonymous-cb2bi
    @anonymous-cb2bi2 жыл бұрын

    Amazing work, i got few questions from your precedent video about spring security but this one helped me to comprehend better, not even asked that you provided for us, thanks a lot pal :)

  • @preto115
    @preto1152 жыл бұрын

    Thanks so much for spreading out your wonderfull knowlegde on this subject. It simply blows my mind how you master the subject and how you are able to explained every single point in the code and how is your profound knowledgement to resolve error when they show up! Congratulations for your expertise on teaching also... I am a true begginner in this area and the way you master this subject is really wonderful.

  • @electricimpulsetoprogramming

    @electricimpulsetoprogramming

    Жыл бұрын

    Boa sorte na tua jornada, estou aprendendo por conta e parece impossível

  • @optinihilis
    @optinihilis2 жыл бұрын

    I love you for this. You are the only one that knew how to explain. Thank you so much! Liked and Subscribed!

  • @OldManRog
    @OldManRog2 жыл бұрын

    This was a fun project, I learned how to secure my API routes, how to authenticate & authorize as well as sending a refresh token. It would be awesome if you do this project again but with the best practices. Maybe like a follow up or more advanced video. Thank you both of you guys for providing such an informative tutorial.

  • @brandonalfaro42

    @brandonalfaro42

    9 ай бұрын

    I know I'm a bit late but did you also name your main entity class "User". I named my Employee and then used the User class from the security package. And I'm struggling to figure out which one to use for the refresh token part.

  • @anasjiyar8517

    @anasjiyar8517

    4 ай бұрын

    @@brandonalfaro42 you have to use your personal class User, beacause he use the repository on it.

  • @von_uo9317
    @von_uo9317 Жыл бұрын

    Thank you for detailed explanation of JWT. And your videos are really awesome love them !!

  • @abuzeralaca
    @abuzeralaca2 жыл бұрын

    That was one of the best tutorial I have seen in youtube. As always you deserve like and comment bro. Good job.

  • @Jordan-rv8gl
    @Jordan-rv8gl Жыл бұрын

    Really amazing content, Amigo! You're awesome at explaining things.

  • @ilovekimseungmin2027
    @ilovekimseungmin20272 жыл бұрын

    thank you, i love well-rounded tutorials like this. very useful.

  • @ar-ul5kj
    @ar-ul5kj Жыл бұрын

    Excellent video mate! Thank you for sharing knowledge in such clear manner :)

  • @junioryao3458
    @junioryao34582 жыл бұрын

    Best security course hands-on I have seen so far , take my hat off

  • @Tooxcade
    @Tooxcade2 жыл бұрын

    Salaam Brother - Eid Mubarak. Long waited for video. MANY THANKS

  • @opendeskca6333
    @opendeskca63332 жыл бұрын

    Beautiful course on Spring Security! Congratulations.

  • @adwaithvenkatesh2640
    @adwaithvenkatesh26402 жыл бұрын

    Thanks for posting these videos . It's very helpful. Keep post such great content

  • @abdulhakam9739
    @abdulhakam97392 жыл бұрын

    Thanks for the great explanation and tutorial. It really really helps me.بَارَكَ اللهُ لَكَ

  • @hanhnhan7118
    @hanhnhan7118 Жыл бұрын

    I'm really impressed this tutorial. Thank you very much for sharing this amazing tutorial 😊

  • @fangwilliam3210
    @fangwilliam3210 Жыл бұрын

    Thank You bro for this wonderful lesson!i finished this lession , simple, efficient, nothing more to say ! Thank you !:)

  • @zora9906
    @zora99062 жыл бұрын

    I was looking for a video like this. Thank you

  • @aydarzakirov9690
    @aydarzakirov9690 Жыл бұрын

    Thanks a lot for your video lessons! They are great and easy to understand and implement!

  • @shahinkhalajestani8587
    @shahinkhalajestani85872 жыл бұрын

    Perfect. it was really useful . Ur content is always rich and I learned so much from U. Thank U amigoscode.

  • @HamzaBaqoushi
    @HamzaBaqoushi2 жыл бұрын

    Jazaka Allaho Khayr Bro Neslon! Just on time.

  • @emanuelecaputo5271
    @emanuelecaputo52712 жыл бұрын

    this tutorial is pure gold! Awesome!

  • @user-hw2pr7zp4q
    @user-hw2pr7zp4q2 жыл бұрын

    Im very excited to see your video course about jwt with refresh token, thanks:)

  • @rachidxx94
    @rachidxx94 Жыл бұрын

    Amazing course!! Very well done, thankyou!

  • @dancalinfota6157
    @dancalinfota61572 жыл бұрын

    amazing and useful video! Thank you! exactly what I needed

  • @eversonfgjr
    @eversonfgjr2 жыл бұрын

    good job Nelson, excelent explanation as usual!

  • @borisjohnson2826
    @borisjohnson28262 жыл бұрын

    You are such a talented explanator. Thank you

  • @sathishkumarr7106
    @sathishkumarr7106 Жыл бұрын

    Really a best explanation and great video in KZread for JWT implementation 👌🏻 keep rocking bro

  • @kevin2908k
    @kevin2908k2 жыл бұрын

    Very good tutorial! In my opinion, it is currently the best on youtube for that topic

  • @zeesh49
    @zeesh492 жыл бұрын

    thank you very much for creating this video...cleared my concepts on spring security

  • @valentinmagnan30
    @valentinmagnan302 жыл бұрын

    Thanks a lot, this tutorial is just perfect! You're amazing 😀 !

  • @algerianpublicwriter
    @algerianpublicwriter2 жыл бұрын

    I benefited a lot from this course thank you very much brother Nelson

  • @florianmarco5669
    @florianmarco56692 жыл бұрын

    Thanks for the course, it's great and very well explained

  • @giorgibakradze8734
    @giorgibakradze87342 жыл бұрын

    This is a great tutorial. It helped me a lot. Thank you.

  • @CiaphasCain21
    @CiaphasCain212 жыл бұрын

    Thanks for this tutorial! I've just learned about refresh token mechanism and wanted to find any example in Spring Boot

  • @gradientO
    @gradientO2 жыл бұрын

    Gotta love how the video quality increases each time! Well done Nelson

  • @samadanvarov4264

    @samadanvarov4264

    2 жыл бұрын

    IF FBI watch this security video . We also must watch this video ))

  • @WaclawShuminski
    @WaclawShuminski2 жыл бұрын

    OMG It's really great tutorial! Thank you man a lot! Also, we can place constant URLs such as "/login" or "/token/refresh" as static final fields in SecurityConfig and just use them wherever we want - in Filters, Resource Controllers, anywhere. And we just have to edit them once only at that point.

  • @kurtne4892

    @kurtne4892

    Жыл бұрын

    Good tip Constants are quite useful here.

  • @Adam-qn9uq
    @Adam-qn9uq2 жыл бұрын

    🙏 Much much appreciated !! You're becoming my reliable resource for my study 👍 As-salamu alaykum ☺

  • @gamer-jg7rj
    @gamer-jg7rj2 жыл бұрын

    Wow!This is a reaaaaaaaally good course. Thanks my friend.

  • @adebisiolaoluwa2125
    @adebisiolaoluwa21252 жыл бұрын

    Nelson. thank you for your dedication... i started spring couple of months ago and you have been a blessing to me.. kindly do tutorial on sign up/ register, login and log out in spring boot api using JWT

  • @yt-administrator
    @yt-administrator Жыл бұрын

    You helped me out a lot Amigo! I'm looking forward to an Angular masterclass.

  • @haykmkhitaryan3464
    @haykmkhitaryan34642 жыл бұрын

    Great course, nice explaination, thanks a lot guys !!!

  • @anastasianaumko923
    @anastasianaumko923 Жыл бұрын

    Thank you! Very clear and thorough

  • @chouyumo9227
    @chouyumo92272 жыл бұрын

    It's very helpful and perfect !! Thank you a lot!!

  • @defrankline
    @defrankline2 жыл бұрын

    Damn! this tutorial is everything! Thanks Amiscode

  • @mohammadjavadnasrolla7302
    @mohammadjavadnasrolla7302 Жыл бұрын

    Thank you , this tutorial helps me a lot❤️

  • @sonamtenzin4457
    @sonamtenzin44572 жыл бұрын

    Wow! your video is really awesome and information you have depicted is precise. Love you and following your channel. Thank you so much for your video and love to see more videos in youtube.

  • @gafarraji
    @gafarraji2 жыл бұрын

    Thank you Nelson for this great video.

  • @AshrafMMA
    @AshrafMMA2 жыл бұрын

    I have been waiting for something like this for a while

  • @akhil7556
    @akhil75562 жыл бұрын

    This was the content that exactly I'm looking ....Thanks .

  • @AbleToLiveHere
    @AbleToLiveHere Жыл бұрын

    This is brilliant. Thank you SO MUCH!

  • @rdogaldino04
    @rdogaldino04 Жыл бұрын

    Very nice, thanks for sharing your knowledge.

  • @souhaibd2934
    @souhaibd29342 жыл бұрын

    Great tutorial brother! JazakAllah Khayr

  • @phuang3
    @phuang32 жыл бұрын

    Thanks. This is exactly what I need for my project.

  • @yasastn
    @yasastn Жыл бұрын

    really helpful tutorial, thanks mate

  • @rodrickngonyoku5042
    @rodrickngonyoku50422 жыл бұрын

    Finally, been looking for this.

  • @vitog5412
    @vitog5412 Жыл бұрын

    Good job guys! Thank you for sharing your knowledge! 👌🌄

  • @azhyabdalqadir4293
    @azhyabdalqadir429310 ай бұрын

    Thank u bro, it was great!

  • @marcosferreira17br
    @marcosferreira17br Жыл бұрын

    Thank you for share your knowledge, this would be very helpful for my personal projects :D

  • @hienang4164
    @hienang4164 Жыл бұрын

    hello Amigoscode i'm from VietNam. First of all, thank you very much for the knowledge shared in this video. It helped me a lot in my final major assignment in college. Wishing you good health and good luck.

  • @donkisiko
    @donkisiko Жыл бұрын

    Honestly just want to say thank you so much for taking the time and effort it took to make this really guys, this is legendary. I am super grateful. Thank you.

  • @arunkumarjena18
    @arunkumarjena182 жыл бұрын

    Eagerly waiting for this type of tutorial.

  • @nityanandbhaskar2155
    @nityanandbhaskar21552 жыл бұрын

    Helpful tutorial as always. 👍

  • @edwardreyes8341
    @edwardreyes83412 жыл бұрын

    Hey Nelson your content is always so useful, thanks for this videos, i hope to see videos about Spring Cloud, that would be great, Thank you so much!

  • @user-uy1rs4zg1k
    @user-uy1rs4zg1k2 жыл бұрын

    It's a perfect tutorial. Thank you.

  • @dunayqudretli3382
    @dunayqudretli3382 Жыл бұрын

    Thanks man this tutorial is great!

  • @user-vc6do9gn5y
    @user-vc6do9gn5y8 ай бұрын

    Best Video on KZread about JWT Token in Spring Boot

  • @momokoko9864
    @momokoko98642 жыл бұрын

    thank you, very helpful, really applied to my current problem

  • @rajdipbhattacharya1905
    @rajdipbhattacharya19052 жыл бұрын

    This video can't get any better. I've been searching for a video that explains the working of these security classes. All that regular courses included were spring auto security configuration, usage of jsp pages and not really getting into the core and playing around.

  • @Satishkumar-rx7oy
    @Satishkumar-rx7oy2 жыл бұрын

    Nice tutorial it helped me lot to understand spring security

  • @mehmetyazc536
    @mehmetyazc5362 жыл бұрын

    That's perfect. Many thanks amigo ❤

  • @yacine7271
    @yacine727111 ай бұрын

    thanks mate very helpful^^

  • @deepikamahulia3530
    @deepikamahulia35302 жыл бұрын

    Thank you for this informative video. It helped me a lot.

  • @andreasaltwegg576
    @andreasaltwegg5762 жыл бұрын

    cool video .. only thing .. when sending a refreshToken to get a new accessToken, it is good practice to create a new refreshToken as well. small thing but it helps, that the refreshToken always has longer expire date-time then the accessToken.

  • @hafiznecefli6711
    @hafiznecefli67112 жыл бұрын

    You made my day. Thanks a lot 👏

  • @Alex-qy9zm
    @Alex-qy9zm2 жыл бұрын

    Many tanks, Amigo! Perfect!

  • @xiangziification
    @xiangziification Жыл бұрын

    Thanks for this wonderful tutorial

  • @SanjeevKulkarniWorld
    @SanjeevKulkarniWorld2 жыл бұрын

    Great topic and easy to understand

  • @oriflying3512
    @oriflying35122 жыл бұрын

    thank you so much!!! 🙊

  • @sdmj730
    @sdmj7302 жыл бұрын

    Awesome, please make more videos junior with authentication...oauth.... Loved it!!!!!

  • @kay2care
    @kay2care2 жыл бұрын

    Spring Boot JWT made easy. Thank you.

  • @elinaldobezerra9011
    @elinaldobezerra90112 жыл бұрын

    Excellent content, thank you.

  • @nataly9a
    @nataly9a Жыл бұрын

    Thank you, Great Man! You saved my week!))

  • @alexandros-markovits
    @alexandros-markovits2 жыл бұрын

    Awesome tutorial!

  • @jevzp
    @jevzp Жыл бұрын

    Hey Nelson, first of all I wanted to thank you for your videos and the work you put into them. I wanted to ask you, if you could make a updated version of this video, with the new Bean based Security configuration stuff. I just don't get it to work. It always breaks and I have tried pretty much everything that came in my mind or what I found on google. I am not using spring for that long so I am still kinda new to the whole topic. I would really appreciate it! Keep it up man!

Келесі