Spring Boot and Spring Security with JWT including Access and Refresh Tokens 🔑
HTML-код
- Опубликовано: 31 май 2024
- 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 - Наука
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!
Simple, direct and efficient. You have the gift of explaining!
Nothing more to say. Thank you sir!
I just got back at studying Spring, and this video came in PERFRECT timing. Love your content, thank you!
Yesterday I was looking for this exact tutorial on your channel and today you upload this! Just perfect! Thanks 😁
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 ! :)
Amazing tutorial, the best one about Spring Security and JWT I've seen so far, thank you very much for posting this for free!
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.
Boa sorte na tua jornada, estou aprendendo por conta e parece impossível
Man, you saved me. This is exactly I was looking for, with examples and the explanation of each line you're into.
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 :)
Your videos are amazing I rarely saw such a good content with good explanations when it is needed. Great job and thank you!
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.
That's perfectly matched what I need! Thanks for the high-quality tutorial.
Amazing like always Nelson!
Thanks for the richest content you provide to the community.
As usual, your tutorial/course is awesome. Thank you so much!
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
That was one of the best tutorial I have seen in youtube. As always you deserve like and comment bro. Good job.
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.
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.
@@brandonalfaro42 you have to use your personal class User, beacause he use the repository on it.
Best security course hands-on I have seen so far , take my hat off
Really amazing content, Amigo! You're awesome at explaining things.
Gotta love how the video quality increases each time! Well done Nelson
IF FBI watch this security video . We also must watch this video ))
thank you, i love well-rounded tutorials like this. very useful.
Thank you for detailed explanation of JWT. And your videos are really awesome love them !!
Very good tutorial!
In my opinion, it is currently the best on youtube for that topic
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.
Good tip Constants are quite useful here.
Salaam Brother - Eid Mubarak. Long waited for video. MANY THANKS
Excellent video mate! Thank you for sharing knowledge in such clear manner :)
Thanks for this tutorial! I've just learned about refresh token mechanism and wanted to find any example in Spring Boot
Beautiful course on Spring Security! Congratulations.
I benefited a lot from this course thank you very much brother Nelson
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
Thank You bro for this wonderful lesson!i finished this lession , simple, efficient, nothing more to say ! Thank you !:)
Thanks for the great explanation and tutorial. It really really helps me.بَارَكَ اللهُ لَكَ
Perfect. it was really useful . Ur content is always rich and I learned so much from U.
Thank U amigoscode.
You are such a talented explanator. Thank you
this tutorial is pure gold! Awesome!
good job Nelson, excelent explanation as usual!
I'm really impressed this tutorial.
Thank you very much for sharing this amazing tutorial 😊
Im very excited to see your video course about jwt with refresh token, thanks:)
Thanks a lot for your video lessons! They are great and easy to understand and implement!
thank you very much for creating this video...cleared my concepts on spring security
Thanks for the course, it's great and very well explained
Really a best explanation and great video in RUclips for JWT implementation 👌🏻 keep rocking bro
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.
Amazing course!! Very well done, thankyou!
This is a great tutorial. It helped me a lot. Thank you.
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.
Wow!This is a reaaaaaaaally good course. Thanks my friend.
I was looking for a video like this. Thank you
amazing and useful video! Thank you! exactly what I needed
Thanks a lot, this tutorial is just perfect! You're amazing 😀 !
Thanks for posting these videos . It's very helpful. Keep post such great content
Great course, nice explaination, thanks a lot guys !!!
🙏 Much much appreciated !!
You're becoming my reliable resource for my study 👍
As-salamu alaykum ☺
You helped me out a lot Amigo! I'm looking forward to an Angular masterclass.
Jazaka Allaho Khayr Bro Neslon! Just on time.
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.
Thanks. This is exactly what I need for my project.
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 , this tutorial helps me a lot❤️
It's very helpful and perfect !! Thank you a lot!!
thank you, very helpful, really applied to my current problem
Thank you! Very clear and thorough
This was the content that exactly I'm looking ....Thanks .
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!
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!
This is brilliant. Thank you SO MUCH!
Damn! this tutorial is everything! Thanks Amiscode
Best Video on RUclips about JWT Token in Spring Boot
Thank you Nelson for this great video.
I have been waiting for something like this for a while
Walaikum assalam brother... I m very happy to see you here...
Doing great work brother...
Thank you for share your knowledge, this would be very helpful for my personal projects :D
Nice tutorial it helped me lot to understand spring security
Great tutorial brother! JazakAllah Khayr
It's a perfect tutorial. Thank you.
Good job guys! Thank you for sharing your knowledge! 👌🌄
Very nice, thanks for sharing your knowledge.
Awesome, please make more videos junior with authentication...oauth....
Loved it!!!!!
That's perfect. Many thanks amigo ❤
really helpful tutorial, thanks mate
Helpful tutorial as always. 👍
Thank u bro, it was great!
Spring Boot JWT made easy. Thank you.
Eagerly waiting for this type of tutorial.
Many tanks, Amigo! Perfect!
Thanks man this tutorial is great!
Your tutorials are awesome :) Please make a tutorial about 'microservices with spring boot'
Thank you for this informative video. It helped me a lot.
Triple thumbs up, actually!!! This is good. What I would like to see? More on filters. Basically logging requests and responses (failed and successful) for every application that hits certain endpoints (and maybe another endpoint for them to be able to see this). I know actuator works fine for this and my second concern (keeping counts of API calls generally and per application), but I would like to see some custom implementation. There are a few more, but this would be a fine start, if it is possile
Great topic and easy to understand
Asslam o Alaikum Sir first of all great effort great course thank you soooooo much for that
May grant you best reward for this
You made my day. Thanks a lot 👏
Finally, been looking for this.
Thank you for your exhaustive explanation.
So good.I finally found a good teacher 😁 xd. Thank you,master!
Thanks for this wonderful tutorial