Рет қаралды 258,058
Spring Security is a powerful and popular framework for securing Java applications. In this video, we'll show you how to get started with Spring Security, by creating a simple authentication system using basic auth and JWT.
👉🏿 Subscribe to @BoualiAli channel - / @boualiali
Don't Forget to
===========================================
💯 Subscribe to Amigoscode - bit.ly/2HpF5V8
💯 Courses Available for free here - amigoscode.com/courses
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
⭐ Table Of Contents ⭐
===========================================
00:00 - Intro
01:34 - Guest Course Intro
03:15 - Nelson Course Intro
04:08 - Bootstrap app
06:03 - Create API
10:23 - Install Spring Security
14:33 - Explain form login
16:37 - Explain basic authentication
18:22 - Implement basic authentication
22:07 - Implement basic authentication
25:49 - Explain JWT authentication
31:10 - Implement JWT authentication filter
45:34 - Implement JWT utils class and finalise the filter
51:16 - Tell Spring to use the JWT filter
53:54 - Implement userDetailsService
01:00:46 - Add the authenticationProvider bean
01:05:56 - Add session management creation policy
01:07:38 - Implement Authentication controller
01:16:32 - Improve the code
01:20:44 - Testing the application
01:29:48 - Outro
#springsecurity #springboot #oauth2
🙊 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
► IDE & Tools I use for coding 💻 🎒
===========================================
- ITerm
- VsCode
- GoLand
- IntelliJ Ultimate
- Sublime
P.S
===========================================
💯 Don't forget to subscribe | bit.ly/2HpF5V8
💯 Join Private Facebook Group and Discord - amigoscode.com/p/join-community
💯 Follow me on Instagram | bit.ly/2TSkA9w
❤️ Thanks for watching
#springsecurity #springboot #amigoscode