🔗 Postman API collection: https://drive.google.com/file/d/1sjpc...
🔗 GitHub repo: https://github.com/Washingtonwei/hogw...
In this video, I handled various Spring Security exceptions in a @ControllerAdvice annotated class. I defined several custom classes that implement the AuthenticationEntryPoint interface.
00:00 Introduction to Spring Security Exceptions
01:24 Defining exception handlers in ControllerAdvice for security exceptions
06:30 Testing security exception handling in Postman (Not working as expected)
08:47 Spring Security exceptions are thrown before the controllers start to work
09:37 Handling unsuccessful basic authentication in ControllerAdvice
15:24 Handling unsuccessful JWT authentication in ControllerAdvice
18:11 Handling unsuccessful JWT authorization (access denied exception) in ControllerAdvice
21:30 Testing security exception handling in Postman (Working as expected)
Keep watching. Here are more Spring Security videos:
34 Introduction to Spring Security 🔗 • [Episode 34] Introduction to Spring S...
35 Implementing HTTP Basic Authentication in Spring Boot 🔗 • [Episode 35] Implementing HTTP Basic ...
36 Introduction to JWT 🔗 • [Episode 36] Introduction to JWT
37 Generating JWTs in Spring Boot 🔗 • [Episode 37] Generating JWTs in Sprin...
38 Handling Spring Security Exceptions Using @ControllerAdvice🔗 • [Episode 38] Handling Spring Security...
39 Testing with Spring Security 🔗 • [Episode 39] Testing with Spring Secu...
40 Enabling CORS in Spring Boot 🔗 • [Episode 40] Enabling CORS in Spring ...
41 Committing and Pushing to a GitHub Repo 🔗 • [Episode 41] Committing and Pushing t...
This video belongs to a playlist "Learn Spring Boot 3 with Bingyang": • Learn Spring Boot 3 with Bingyang
I don't want to make a super long video so I split it into smaller ones. If you want to learn Spring Boot 3 systematically, please visit the playlist (and save the playlist) for more Spring Boot 3 tutorials.
Feel free to leave a comment if you have any questions.
As always, thanks for watching, and happy learning!