Secure Spring Boot Web API using JWT and Spring Security - JWT Authentication and Authorization
Vložit
- čas přidán 19. 07. 2024
- Implement user registration, authentication and authorization using JSON Web Token (JWT) in Spring Boot REST API. Secure Spring Boot Web API using Spring Security, JWT, MySQL database and data validation. Store registred users in the database and authenticate users from database using Spring JPA. JWT authentication and authorization using Spring Boot, Spring Security and MySQL.
************************
Source Code on Patreon : / secure-spring-102904182
Video Part 2 on Patreon : / secure-spring-102904182
Full Spring Boot Course : Not available yet
************************
🔥 Other Udemy Courses :
Create ASP.NET Core Web Application : www.udemy.com/course/aspnet-c...
Build ASP.NET Core Web API : www.udemy.com/course/build-as...
Learn React JS Step by Step : www.udemy.com/course/build-co...
************************
Video Content
(00:00) Introduction
(01:58) Create Entity Model and Database Table
(05:41) Create SecurityFilterChain and JwtDecoder
(08:06) Create AuthenticationManager
(10:12) Create JWT
(11:24) Register Users
(15:12) Authenticate users
(17:52) Authorize users using JWT
This video saves me, thanks for that.🙏🏿🙏🏿
What a benefical video 👍🏻
Is it okay to have entity operation code on a controller? Methinks it all should be in the service layer
Thank you for this tutorial 😀
I want to ask. How can i configure the cors when i want to connect a frontend application to this api.
I have always a cors problem when requesting this api via browser (simple form that contains username & password)
This video is really helpful..., A link for party 2
link in the description
great tutorial, but i wish you explained how to manage logouts ( jwt token blacklisting and such etc..)
How did you get the key?
the key is the server secret. you can create it randomly
$ openssl rand -base64 32