最新消息:请大家多多支持

Use Jwt & Springboot-3 For Api Authentication Authorization

未分类 dsgsd 20浏览 0评论

U3FCX9wLb8HEGIPShQJI2PVjjWW6H9Xd

Published 11/2024
MP4 | Video: h264, 1920×1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 924.05 MB | Duration: 1h 34m

Develop production ready secure REST API’s using latest JWT and Springboot 3

What you’ll learn
You will about Authentication & Authorization
You will learn about JWT – Json Web Token and its working
You will learn to implement Springboot 3.3.5 with JWT
You will learn to secure your REST API using Springboot 3 & JWT
You will learn to develop applications with multiple roles
You will also get the source code for the course.

Requirements
Basics of Java & Springboot

Description
In this course you will learn to secure REST API with Springboot-3 and JWT.JSON Web Tokens (JWT) and Spring Boot together provide a powerful solution for securing web applications. JWT is a compact, URL-safe means of representing claims to be transferred between two parties. The token is digitally signed, allowing the receiving party to verify its authenticity. This is particularly useful in stateless authentication, where the server does not need to store session information.In a Spring Boot application, JWT can be integrated easily for authentication and authorization purposes. When a user logs in, the server generates a JWT containing user information and permissions. This token is sent back to the client, which stores it (typically in local storage or cookies). For subsequent requests, the client includes the JWT in the HTTP headers, allowing the server to validate the token and grant access to protected resources.To implement JWT in Spring Boot, developers can use libraries like jjwt for token creation and parsing. Spring Security can be configured to intercept requests and validate the JWT. By using filters, developers can ensure that each request is authenticated based on the token. This combination not only enhances security but also simplifies scaling, as each request is stateless, reducing server-side overhead and improving performance.You will also get the source code for the course.

Overview
Section 1: Setup and Configuration

Lecture 1 Generating the starter springboot 3.3.5 project

Lecture 2 Adding JWT dependencies

Lecture 3 Adding Different User Roles

Lecture 4 Creating Role Entity

Lecture 5 Creating User Entity

Lecture 6 Adding profile based application properties files

Lecture 7 Adding H2 file based Database configuration

Section 2: Working on Repository and Services

Lecture 8 Creating Role Repository with required custom queries

Lecture 9 Creating User Repository with required custom queries

Lecture 10 Adding logic for UserDetailsImpl class for mapping the User Entity and Role

Lecture 11 Adding logic for UserServiceImpl to load user and save user

Lecture 12 Service for generating validating token and extracting claims

Section 3: Working on Filter and Configuration

Lecture 13 Implementing JWT Authentication Filter

Lecture 14 Implementing and understanding Security Config bean

Lecture 15 Exception handling for all security errors

Lecture 16 Understanding Security Filter Chain configuration.mp4

Lecture 17 Handling Cors Configuration in the application

Section 4: Login and Signup Functionality

Lecture 18 Creating Signup Request DTO

Lecture 19 Creating LoginRequest and Response DTO and Message DTO

Lecture 20 Implementing Signup and Registration functionality in Auth Controller

Lecture 21 Understanding Auth Controller

Lecture 22 Startup command to insert roles into database

Lecture 23 Solving circular dependency

Section 5: Testing the application

Lecture 24 Testing the application

Lecture 25 Updating Security Config rules and testing again

Lecture 26 Implement Test Controller to test Authentication and Authorization

Lecture 27 Testing different roles with API endpoints security

Lecture 28 Get LoggedIn user information

Anyone who wants to implement JWT based Authentication and Authorization with Springboot 3.3.5 and Spring security

Password/解压密码www.tbtos.com

资源下载此资源仅限VIP下载,请先

转载请注明:0daytown » Use Jwt & Springboot-3 For Api Authentication Authorization

您必须 登录 才能发表评论!