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

  Рет қаралды 591,824

Amigoscode

Amigoscode

Күн бұрын

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

Пікірлер: 822
@saywuat
@saywuat 2 жыл бұрын
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
@Kevinppaulo 3 жыл бұрын
I just got back at studying Spring, and this video came in PERFRECT timing. Love your content, thank you!
@nunoaparicio4426
@nunoaparicio4426 3 жыл бұрын
Yesterday I was looking for this exact tutorial on your channel and today you upload this! Just perfect! Thanks 😁
@gficeis
@gficeis 2 жыл бұрын
Simple, direct and efficient. You have the gift of explaining! Nothing more to say. Thank you sir!
@preto115
@preto115 2 жыл бұрын
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
@matheusbarreto7656
@matheusbarreto7656 Жыл бұрын
Man, you saved me. This is exactly I was looking for, with examples and the explanation of each line you're into.
@yassinebousseha8191
@yassinebousseha8191 Жыл бұрын
after searching for clean and understandable explanation for 3 months i finally found the best one . nice & clean
@alfredomenezes8814
@alfredomenezes8814 2 жыл бұрын
Amazing tutorial, the best one about Spring Security and JWT I've seen so far, thank you very much for posting this for free!
@avm0101
@avm0101 2 жыл бұрын
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.
@lts8683
@lts8683 2 жыл бұрын
Your video contains a lot of best practices, that's among things that distinguish it from other tutorials. Thank you and keep going.
@jafarsadik4335
@jafarsadik4335 2 жыл бұрын
His voice is so calm and soothing, it didn't stress me at all. Good job!
@Yiliu
@Yiliu 3 жыл бұрын
That's perfectly matched what I need! Thanks for the high-quality tutorial.
@HouariZegai
@HouariZegai 3 жыл бұрын
Amazing like always Nelson! Thanks for the richest content you provide to the community.
@azizmavlyanov3145
@azizmavlyanov3145 3 жыл бұрын
As usual, your tutorial/course is awesome. Thank you so much!
@programmer4226
@programmer4226 2 жыл бұрын
Man you explain everything so well and in detail. Very few people on the internet do this. Thank you ! :)
@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
@amarok3460 2 жыл бұрын
Your videos are amazing I rarely saw such a good content with good explanations when it is needed. Great job and thank you!
@anonymous-cb2bi
@anonymous-cb2bi 2 жыл бұрын
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 :)
@WaclawShuminski
@WaclawShuminski 2 жыл бұрын
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 2 жыл бұрын
Good tip Constants are quite useful here.
@gradientO
@gradientO 3 жыл бұрын
Gotta love how the video quality increases each time! Well done Nelson
@samadanvarov4264
@samadanvarov4264 3 жыл бұрын
IF FBI watch this security video . We also must watch this video ))
@junioryao3458
@junioryao3458 2 жыл бұрын
Best security course hands-on I have seen so far , take my hat off
@abuzeralaca
@abuzeralaca 2 жыл бұрын
That was one of the best tutorial I have seen in youtube. As always you deserve like and comment bro. Good job.
@OldManRog
@OldManRog 2 жыл бұрын
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 11 ай бұрын
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 6 ай бұрын
@@brandonalfaro42 you have to use your personal class User, beacause he use the repository on it.
@HamzaBaqoushi
@HamzaBaqoushi 3 жыл бұрын
Jazaka Allaho Khayr Bro Neslon! Just on time.
@Jordan-rv8gl
@Jordan-rv8gl 2 жыл бұрын
Really amazing content, Amigo! You're awesome at explaining things.
@optinihilis
@optinihilis 2 жыл бұрын
I love you for this. You are the only one that knew how to explain. Thank you so much! Liked and Subscribed!
@kevin2908k
@kevin2908k 2 жыл бұрын
Very good tutorial! In my opinion, it is currently the best on youtube for that topic
@abdulhakam9739
@abdulhakam9739 2 жыл бұрын
Thanks for the great explanation and tutorial. It really really helps me.بَارَكَ اللهُ لَكَ
@ilovekimseungmin2027
@ilovekimseungmin2027 2 жыл бұрын
thank you, i love well-rounded tutorials like this. very useful.
@emanuelecaputo5271
@emanuelecaputo5271 3 жыл бұрын
this tutorial is pure gold! Awesome!
@von_uo9317
@von_uo9317 Жыл бұрын
Thank you for detailed explanation of JWT. And your videos are really awesome love them !!
@opendeskca6333
@opendeskca6333 2 жыл бұрын
Beautiful course on Spring Security! Congratulations.
@user-hw2pr7zp4q
@user-hw2pr7zp4q 3 жыл бұрын
Im very excited to see your video course about jwt with refresh token, thanks:)
@ar-ul5kj
@ar-ul5kj Жыл бұрын
Excellent video mate! Thank you for sharing knowledge in such clear manner :)
@algerianpublicwriter
@algerianpublicwriter 2 жыл бұрын
I benefited a lot from this course thank you very much brother Nelson
@CiaphasCain21
@CiaphasCain21 3 жыл бұрын
Thanks for this tutorial! I've just learned about refresh token mechanism and wanted to find any example in Spring Boot
@fangwilliam3210
@fangwilliam3210 Жыл бұрын
Thank You bro for this wonderful lesson!i finished this lession , simple, efficient, nothing more to say ! Thank you !:)
@shahinkhalajestani8587
@shahinkhalajestani8587 2 жыл бұрын
Perfect. it was really useful . Ur content is always rich and I learned so much from U. Thank U amigoscode.
@eversonfgjr
@eversonfgjr 2 жыл бұрын
good job Nelson, excelent explanation as usual!
@AshrafMMA
@AshrafMMA 3 жыл бұрын
I have been waiting for something like this for a while
@florianmarco5669
@florianmarco5669 2 жыл бұрын
Thanks for the course, it's great and very well explained
@valentinmagnan30
@valentinmagnan30 2 жыл бұрын
Thanks a lot, this tutorial is just perfect! You're amazing 😀 !
@zora9906
@zora9906 3 жыл бұрын
I was looking for a video like this. Thank you
@dancalinfota6157
@dancalinfota6157 2 жыл бұрын
amazing and useful video! Thank you! exactly what I needed
@blacknwhitenblue
@blacknwhitenblue 2 жыл бұрын
thank you very much for creating this video...cleared my concepts on spring security
@aydarzakirov9690
@aydarzakirov9690 Жыл бұрын
Thanks a lot for your video lessons! They are great and easy to understand and implement!
@gamer-jg7rj
@gamer-jg7rj 2 жыл бұрын
Wow!This is a reaaaaaaaally good course. Thanks my friend.
@phuang3
@phuang3 3 жыл бұрын
Thanks. This is exactly what I need for my project.
@souhaibd2934
@souhaibd2934 2 жыл бұрын
Great tutorial brother! JazakAllah Khayr
@haykmkhitaryan3464
@haykmkhitaryan3464 2 жыл бұрын
Great course, nice explaination, thanks a lot guys !!!
@adwaithvenkatesh2640
@adwaithvenkatesh2640 2 жыл бұрын
Thanks for posting these videos . It's very helpful. Keep post such great content
@Adam-qn9uq
@Adam-qn9uq 2 жыл бұрын
🙏 Much much appreciated !! You're becoming my reliable resource for my study 👍 As-salamu alaykum ☺
@hanhnhan7118
@hanhnhan7118 Жыл бұрын
I'm really impressed this tutorial. Thank you very much for sharing this amazing tutorial 😊
@giorgibakradze8734
@giorgibakradze8734 2 жыл бұрын
This is a great tutorial. It helped me a lot. Thank you.
@borisjohnson2826
@borisjohnson2826 2 жыл бұрын
You are such a talented explanator. Thank you
@adebisiolaoluwa2125
@adebisiolaoluwa2125 2 жыл бұрын
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
@rachidxx94
@rachidxx94 Жыл бұрын
Amazing course!! Very well done, thankyou!
@andreasaltwegg576
@andreasaltwegg576 3 жыл бұрын
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.
@Tooxcade
@Tooxcade 3 жыл бұрын
Salaam Brother - Eid Mubarak. Long waited for video. MANY THANKS
@akhil7556
@akhil7556 3 жыл бұрын
This was the content that exactly I'm looking ....Thanks .
@chouyumo9227
@chouyumo9227 2 жыл бұрын
It's very helpful and perfect !! Thank you a lot!!
@arunkumarjena18
@arunkumarjena18 3 жыл бұрын
Eagerly waiting for this type of tutorial.
@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.
@mehmetyazc536
@mehmetyazc536 3 жыл бұрын
That's perfect. Many thanks amigo ❤
@rodrickngonyoku5042
@rodrickngonyoku5042 2 жыл бұрын
Finally, been looking for this.
@defrankline
@defrankline 2 жыл бұрын
Damn! this tutorial is everything! Thanks Amiscode
@momokoko9864
@momokoko9864 2 жыл бұрын
thank you, very helpful, really applied to my current problem
@yt-administrator
@yt-administrator Жыл бұрын
You helped me out a lot Amigo! I'm looking forward to an Angular masterclass.
@mohammadjavadnasrolla7302
@mohammadjavadnasrolla7302 Жыл бұрын
Thank you , this tutorial helps me a lot❤️
@AbleToLiveHere
@AbleToLiveHere 2 жыл бұрын
This is brilliant. Thank you SO MUCH!
@Alex-qy9zm
@Alex-qy9zm 3 жыл бұрын
Many tanks, Amigo! Perfect!
@kunying4037
@kunying4037 2 жыл бұрын
Cool thank you so much
@sonamtenzin4457
@sonamtenzin4457 2 жыл бұрын
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.
@rdogaldino04
@rdogaldino04 Жыл бұрын
Very nice, thanks for sharing your knowledge.
@user-uy1rs4zg1k
@user-uy1rs4zg1k 2 жыл бұрын
It's a perfect tutorial. Thank you.
@user-vc6do9gn5y
@user-vc6do9gn5y 10 ай бұрын
Best Video on KZfaq about JWT Token in Spring Boot
@sathishkumarr7106
@sathishkumarr7106 Жыл бұрын
Really a best explanation and great video in KZfaq for JWT implementation 👌🏻 keep rocking bro
@nityanandbhaskar2155
@nityanandbhaskar2155 3 жыл бұрын
Helpful tutorial as always. 👍
@oriflying3512
@oriflying3512 3 жыл бұрын
thank you so much!!! 🙊
@edwardreyes8341
@edwardreyes8341 3 жыл бұрын
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!
@gafarraji
@gafarraji 2 жыл бұрын
Thank you Nelson for this great video.
@anastasianaumko923
@anastasianaumko923 Жыл бұрын
Thank you! Very clear and thorough
@pashok1228
@pashok1228 2 жыл бұрын
Hi, thanks a lot for a decent guide to jwt and security. Can you tell me which theme for idea you are using? I like it very much))
@Satishkumar-rx7oy
@Satishkumar-rx7oy 2 жыл бұрын
Nice tutorial it helped me lot to understand spring security
@SanjeevKulkarniWorld
@SanjeevKulkarniWorld 3 жыл бұрын
Great topic and easy to understand
@yasastn
@yasastn Жыл бұрын
really helpful tutorial, thanks mate
@kay2care
@kay2care 2 жыл бұрын
Spring Boot JWT made easy. Thank you.
@hafiznecefli6711
@hafiznecefli6711 2 жыл бұрын
You made my day. Thanks a lot 👏
@sdmj730
@sdmj730 3 жыл бұрын
Awesome, please make more videos junior with authentication...oauth.... Loved it!!!!!
@azhyabdalqadir4293
@azhyabdalqadir4293 11 ай бұрын
Thank u bro, it was great!
@marcosferreira17br
@marcosferreira17br Жыл бұрын
Thank you for share your knowledge, this would be very helpful for my personal projects :D
@yacine7271
@yacine7271 Жыл бұрын
thanks mate very helpful^^
@rajdipbhattacharya1905
@rajdipbhattacharya1905 2 жыл бұрын
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.
@oscargm1979
@oscargm1979 2 жыл бұрын
So good.I finally found a good teacher 😁 xd. Thank you,master!
@vitog5412
@vitog5412 Жыл бұрын
Good job guys! Thank you for sharing your knowledge! 👌🌄
@francorueta3332
@francorueta3332 3 жыл бұрын
Thanks! Saving it for later :)
@jevzp
@jevzp 2 жыл бұрын
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!
@deepikamahulia3530
@deepikamahulia3530 2 жыл бұрын
Thank you for this informative video. It helped me a lot.
@Chibichakar
@Chibichakar 3 жыл бұрын
Best Tutorial Content, Thanks a Lot...
@faakhy2954
@faakhy2954 Жыл бұрын
Outdated tutorial but all required information are given ! Thanks :)
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,1 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 4,7 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 103 МЛН
Here's The Secret How To Create These Animated Diagrams
11:12
Amigoscode
Рет қаралды 397 М.
Spring Boot in 1 Minute
1:00
in28minutes - Get Cloud Certified
Рет қаралды 265 М.
Spring Security - Refresh token
26:20
Bouali Ali
Рет қаралды 30 М.
Java Roadmap for 2024
11:28
Amigoscode
Рет қаралды 135 М.
What is JWT? JSON Web Tokens Explained (Java Brains)
14:53
Java Brains
Рет қаралды 1 МЛН
Spring Security Architecture Explained
14:41
Amigoscode
Рет қаралды 100 М.
Use Jwt and the Roles to Secure Your Fullstack ReactJS and Spring Boot / Spring Security
10:42
Why I Chose Rust Over Zig
33:18
ThePrimeTime
Рет қаралды 17 М.
Spring Boot and Angular Full Stack Development | 4 Hour Course
3:46:33
JWT-аутентификация для веб-приложений - Spring Security
39:49
Уголок сельского джависта
Рет қаралды 12 М.
Отдых для геймера? 😮‍💨 Hiper Engine B50
1:00