Spring Boot 3 + Spring Security + JWT Authentication and Authorisation | RBAC | Rest API Example

preview_player
Показать описание
Spring Boot 3 + Spring Security + JWT Authentication and Authorisation | RBAC | Rest API Example

This video demonstrates how to protect your Spring boot Application as well as APIs via Spring Security to perform JWT authentication and authorization in a Spring Boot 3.

You'll discover how simple it is to use JSON Web Tokens to secure your application and safeguard your endpoints. We'll go through some security rules for our application and configure Spring Security to use JWT. In the end, we'll verify our configuration by creating a basic API and sending authorised requests via Postman.

This tutorial will provide you with the necessary tools to secure your Spring Boot application with JWT authentication and authorization, regardless of your level of experience as a developer.

Spring Initialzr:

JWT IO:

Recommendation:
Spring Security:

PLEASE SUPPORT THE CHANNEL:
Donate from $5

Thank you very much for watching. Please do Like and Subscribe
Рекомендации по теме
Комментарии
Автор

Guys please do like and subscribe as 80% of views are not subscribed yet, subscribing is free as well as sharing, liking and commenting to motivate us to keep going. Thank you very much for watching

cypcode
Автор

Hi, your videos are incredibly helpful, can you make a video for the deprecated "JdbcTokenStore" or share a link for the replacement of the same.I have read the spring security 6 guide but was unable to find anything regarding it. It will be really helpful . Thanks

gjyrmcq
Автор

Hey I am new in Spring. Can you tell me why the jwt.secret stored in application.properties file?? Is it safe to store the secret in properties file. Thankyou!!

ganeshsingh
Автор

Awesome, can you please source code it would be very helpful

sujitkumar
Автор

hii I am getting header as null what to do for that

prathyusha
Автор

Nice video, but I am getting {
"sub": "admin",
"role": [],
"iss": "rbacspring",
"exp": 1701690111,
"iat": 1701672111
} .. Role is empty.. but I loggedin as Admin. pls give the suggestion.

erpcorb
Автор

nice explanations. Please wold you mind sharing the source code?

luciensikapa
Автор

this example completely ignores Spring Security architecture both for authentication and authorization. would not recommend it

PgPbnsn