filmov
tv
Spring Authorization Server Example with OAuth 2 Client Credentials and In-memory Users

Показать описание
In this Spring Authorization Server tutorial video, I'd like to help you get started by coding a simple Spring Boot project that demonstrates how to enable an authorization server in Spring Security OAuth 2 with:
- OAuth 2 Client Credentials Grant Type
- Client credentials (users) in memory
- Default security settings
- Auto-generated, in-memory public & private keys
You will also learn how to test the Get Access Token API provided by the authorization server with Spring Boot Test, curl command line too and Postman desktop program.
I will also show you how to decode the issued access tokens (JWT) using an online tool.
Key Technologies: Spring Boot 3.4.0, Spring Framework 6.2.0, Spring Security 6.4.1, Spring Security OAuth2 Authorization Server 1.4.0.
Software programs: Java Development Kit (OpenJDK), Spring Tool Suite IDE (STS), curl command line tool, Postman desktop app.
Timestamps
00:14 What You'll Learn
01:46 Create New Project
03:46 Enable Spring Authorization Server
06:54 Create In-memory Client Credentials
09:58 Understand Get Access Token API
10:55 Write Code to Test Get Access Token API
19:25 Decode Issued Access Token
20:44 Test Get Access Token using curl
26:01 Test Get Access Token using Postman
#springsecurity #oauth2 #AuthorizationServer #restapis #springboot #java
- OAuth 2 Client Credentials Grant Type
- Client credentials (users) in memory
- Default security settings
- Auto-generated, in-memory public & private keys
You will also learn how to test the Get Access Token API provided by the authorization server with Spring Boot Test, curl command line too and Postman desktop program.
I will also show you how to decode the issued access tokens (JWT) using an online tool.
Key Technologies: Spring Boot 3.4.0, Spring Framework 6.2.0, Spring Security 6.4.1, Spring Security OAuth2 Authorization Server 1.4.0.
Software programs: Java Development Kit (OpenJDK), Spring Tool Suite IDE (STS), curl command line tool, Postman desktop app.
Timestamps
00:14 What You'll Learn
01:46 Create New Project
03:46 Enable Spring Authorization Server
06:54 Create In-memory Client Credentials
09:58 Understand Get Access Token API
10:55 Write Code to Test Get Access Token API
19:25 Decode Issued Access Token
20:44 Test Get Access Token using curl
26:01 Test Get Access Token using Postman
#springsecurity #oauth2 #AuthorizationServer #restapis #springboot #java
Комментарии