Spring Security Tutorial - [NEW] [2023]
294K views · Dec 6, 2022 · Science & Technology
Comments · 465
@olaoluwaalli8603 · 3 years ago
please add oauth2 and security with authorization servers
22
@edubinatti_ · 3 years ago
Thanks for the video, but in the part "Implement JWT authentication filter" between minutes <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=1860">31:00</a> and <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=2640">44:00</a> there is a problem, you can't see what happens on the screen
152
@caisantangyi · 3 years ago
I just watched the old version. Great timing for a refresher for Spring Boot 3. It would be nice to cover OAuth2 with identity providers like Okta, Auth0 or AWS coginitio.
96
@AshrafZaman · 3 years ago (edited)
Useful stuff, but the video lagged behind the audio for the entire "Implement JWT authentication filter" chapter.<br>I wasn't able to follow this most crucial part, which kind of killed the fun.<br><br>Notes for fellow viewers:<br>1. You might get warnings from the IDE saying "Method annotated with @Bean is called directly. Use dependency injection instead."<br>Annotating the SecurityConfig class with @Configuration will resolve the issue.<br><br>2. I used Spring Boot 3.0.0 (which was available when this video was premiered), and had to make several changes in the securityFilterChain. <br>- authorizeRequests method is deprecated, you should use authorizeHttpRequests instead<br>- antMatchers method has been removed, so I used securityMatcher method. BUT with securityMatcher you specify which path patterns you want to INCLUDE for "authentication"; which is the opposite of antMatcher( ).permitAll( ) approach.<br>In my code I set up everything under "/api/**" to be authenticated, and moved the AuthenticationController outside of it.<br>This way I can access the "/authenticate" endpoint to obtain the JWT token, and then use the token to access endpoints under "/api/v1/...".
45
@Aqwsaful · 3 years ago
Thank you guys! Apart from <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=1860">31:00</a> and <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=2700">45:00</a> time interval, all other explanation was very good. Keep on going !!! Your videos are really helpful and always up-to-date.
36
@paulnzioki8782 · 3 years ago
What a tutorial! I used Spring boot 3 and found myself having to replace the deprecated APIs. What a lesson that was 😄. Figured out some stuff along the way. Thank you @Amigoscode and @BoualiAli for the good work.
6
@amarprongs7897 · 3 years ago (edited)
A decent effort. I usually like your teaching since that is very clear and you feel like you understand why the code is written the way it is. But it didn’t feel the same in this video. It looked more like he was explaining his thought process while writing a code rather than teaching. So, I feel I know what is written but not why. Truly speaking I might have to watch some other video to understand it better<br><br>But a big shout out to your channel. All the other videos which you had done yourself are really good and very helpful. Thank you for all that you are doing
5
@simonceballosjaramillo4040 · 3 years ago
Thanks for the tutorial :). Could you please fix the problem which appears between minutes <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=1860">31:00</a> and <a href="https://www.youtube.com/watch?v=b9O9NI-RJ3o&t=2640">44:00</a>. It seems the screen freezes :(
13
@mosesmaned2151 · 2 years ago
so far you have provided me with much of the knowledge related to spring boot for sure keep on please you are super amazing guy when it comes to springboot
@ezydenias · 1 year ago
thanks, finally a tutorial that describes how to add springn security to an existing project using maven. Brilliant, also the other stuff also seems brilliant, like the anotation on the controller. Your tutorial will help me plenty.
@barnabastyav3575 · 3 years ago
Thank you Nelson and Bouali Ali ,what a great teacher, for putting out this content for us to learn from, i deeply appreciate this ,I also want to point out that at beginning of the implementation of jwt the video was static and not in syn with the audio ,it will be appreciated if something is done about it. Great thanks.
9
@anthonytejada7951 · 3 years ago
Thank you for the updated video on spring security 6. Spring can be very complex at times, but reading documentation and seeing your YouTube videos helps make it clearer everyday.
1
Up next

Build a Blog Platform with Spring Security for Beginners - Full Build
Devtiro · 60K views

Spring Boot 3 + Spring Security 6 - JWT Authentication and Authorisation [NEW] [2023]
Amigoscode · 947K views

Spring Security 6 with Spring Boot and JWT Tutorial
Telusko · 712K views

Spring Boot Security in Tamil: JWT, In-Memory & DB Authentication
JVL code · 36K views

LlamaIndex - Recursive Retrievers + FastAPI Integration (for Beginners)
Hussain Arif · 244 views

Master Spring Security In One Shot 2026 🔐 (JWT + OAuth2 + Authorization, Roles & More) 🚀
CodeSnippet · 65K views

RabbitMQ Tutorial - Message Queues and Distributed Systems
Amigoscode · 204K views

AWS Certified Cloud Practitioner Training 2020 - Full Course
freeCodeCamp.org · 7.5M views

Spring Boot Tutorial for Beginners | Full Course 2025
Amigoscode · 291K views

The Last Bullet Against the AfD | Interview with Ulrich Vosgerau
JUNGE FREIHEIT · 59K views

20 Of The Most Beautiful Classical Adagios for Relaxation and Peace in Rachmaninoff Style
Classical Instrumentals and ClassicsMasterpieces · 1.8M views

9 shocking repos that make money
The Next New Thing · 36K views

Spring Security Architecture Principles by Daniel Garnier-Moiroux @ Spring I/O 2024
Spring I/O · 79K views

But what is quantum computing? (Grover's Algorithm)
3Blue1Brown · 4M views

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025
Better Software Conference · 903K views

Spring Security 6 with Spring Boot 3 and JWT Tutorial
Daily Code Buffer · 104K views

Full Stack AI App: Build a Real-Time Voice Agent Interview Platform
JavaScript Mastery · 1.2M views

Spring Boot + Spring Security + JWT from scratch - Java Brains
Java Brains · 1.1M views

Russian Nuclear Warning Shocks Europe; Geran Drone Cuts Power Lines; Kiev F16s Inactive Lyman Stalls
Alexander Mercouris · 101K views

Spring Boot + MongoDB REST API Tutorial | Build From Scratch | Code Along – Part 1
Java Build Labs · 206 views

4 Hours of Deep Focus Music for Studying - Concentration Music For Deep Thinking And Focus
Quiet Quest - Study Music · 2.9M views

Servlet & JSP Tutorial | Full Course
Telusko · 1.9M views

Spring Security | FULL COURSE
Amigoscode · 979K views

Spring boot 3.0 - Secure your API with JWT Token [2023]
Ali Bouali · 186K views

NestJS Full Course for Beginners in 2026 | Build a Production-Ready API
JavaScript Mastery · 150K views

Spring boot 3 Keycloak integration for beginners | The complete Guide
Ali Bouali · 176K views