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
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!
I just got back at studying Spring, and this video came in PERFRECT timing. Love your content, thank you!
Simple, direct and efficient. You have the gift of explaining! Nothing more to say. Thank you sir!
Yesterday I was looking for this exact tutorial on your channel and today you upload this! Just perfect! Thanks 😁
His voice is so calm and soothing, it didn't stress me at all. Good job!
after searching for clean and understandable explanation for 3 months i finally found the best one . nice & clean
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.
Amazing tutorial, the best one about Spring Security and JWT I've seen so far, thank you very much for posting this for free!
Your video contains a lot of best practices, that's among things that distinguish it from other tutorials. Thank you and keep going.
Man you explain everything so well and in detail. Very few people on the internet do this. Thank you ! :)
Man, you saved me. This is exactly I was looking for, with examples and the explanation of each line you're into.
As usual, your tutorial/course is awesome. Thank you so much!
Amazing like always Nelson! Thanks for the richest content you provide to the community.
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
Your videos are amazing I rarely saw such a good content with good explanations when it is needed. Great job and thank you!
That's perfectly matched what I need! Thanks for the high-quality tutorial.
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 :)
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
Жыл бұрын
Boa sorte na tua jornada, estou aprendendo por conta e parece impossível
I love you for this. You are the only one that knew how to explain. Thank you so much! Liked and Subscribed!
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
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
4 ай бұрын
@@brandonalfaro42 you have to use your personal class User, beacause he use the repository on it.
Thank you for detailed explanation of JWT. And your videos are really awesome love them !!
That was one of the best tutorial I have seen in youtube. As always you deserve like and comment bro. Good job.
Really amazing content, Amigo! You're awesome at explaining things.
thank you, i love well-rounded tutorials like this. very useful.
Excellent video mate! Thank you for sharing knowledge in such clear manner :)
Best security course hands-on I have seen so far , take my hat off
Salaam Brother - Eid Mubarak. Long waited for video. MANY THANKS
Beautiful course on Spring Security! Congratulations.
Thanks for posting these videos . It's very helpful. Keep post such great content
Thanks for the great explanation and tutorial. It really really helps me.بَارَكَ اللهُ لَكَ
I'm really impressed this tutorial. Thank you very much for sharing this amazing tutorial 😊
Thank You bro for this wonderful lesson!i finished this lession , simple, efficient, nothing more to say ! Thank you !:)
I was looking for a video like this. Thank you
Thanks a lot for your video lessons! They are great and easy to understand and implement!
Perfect. it was really useful . Ur content is always rich and I learned so much from U. Thank U amigoscode.
Jazaka Allaho Khayr Bro Neslon! Just on time.
this tutorial is pure gold! Awesome!
Im very excited to see your video course about jwt with refresh token, thanks:)
Amazing course!! Very well done, thankyou!
amazing and useful video! Thank you! exactly what I needed
good job Nelson, excelent explanation as usual!
You are such a talented explanator. Thank you
Really a best explanation and great video in KZread for JWT implementation 👌🏻 keep rocking bro
Very good tutorial! In my opinion, it is currently the best on youtube for that topic
thank you very much for creating this video...cleared my concepts on spring security
Thanks a lot, this tutorial is just perfect! You're amazing 😀 !
I benefited a lot from this course thank you very much brother Nelson
Thanks for the course, it's great and very well explained
This is a great tutorial. It helped me a lot. Thank you.
Thanks for this tutorial! I've just learned about refresh token mechanism and wanted to find any example in Spring Boot
Gotta love how the video quality increases each time! Well done Nelson
@samadanvarov4264
2 жыл бұрын
IF FBI watch this security video . We also must watch this video ))
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
Жыл бұрын
Good tip Constants are quite useful here.
🙏 Much much appreciated !! You're becoming my reliable resource for my study 👍 As-salamu alaykum ☺
Wow!This is a reaaaaaaaally good course. Thanks my friend.
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
You helped me out a lot Amigo! I'm looking forward to an Angular masterclass.
Great course, nice explaination, thanks a lot guys !!!
Thank you! Very clear and thorough
It's very helpful and perfect !! Thank you a lot!!
Damn! this tutorial is everything! Thanks Amiscode
Thank you , this tutorial helps me a lot❤️
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.
Thank you Nelson for this great video.
I have been waiting for something like this for a while
This was the content that exactly I'm looking ....Thanks .
This is brilliant. Thank you SO MUCH!
Very nice, thanks for sharing your knowledge.
Great tutorial brother! JazakAllah Khayr
Thanks. This is exactly what I need for my project.
really helpful tutorial, thanks mate
Finally, been looking for this.
Good job guys! Thank you for sharing your knowledge! 👌🌄
Thank u bro, it was great!
Thank you for share your knowledge, this would be very helpful for my personal projects :D
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.
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.
Eagerly waiting for this type of tutorial.
Helpful tutorial as always. 👍
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!
It's a perfect tutorial. Thank you.
Thanks man this tutorial is great!
Best Video on KZread about JWT Token in Spring Boot
thank you, very helpful, really applied to my current problem
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.
Nice tutorial it helped me lot to understand spring security
That's perfect. Many thanks amigo ❤
thanks mate very helpful^^
Thank you for this informative video. It helped me a lot.
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.
You made my day. Thanks a lot 👏
Many tanks, Amigo! Perfect!
Thanks for this wonderful tutorial
Great topic and easy to understand
thank you so much!!! 🙊
Awesome, please make more videos junior with authentication...oauth.... Loved it!!!!!
Spring Boot JWT made easy. Thank you.
Excellent content, thank you.
Thank you, Great Man! You saved my week!))
Awesome tutorial!
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!