Watch this video to learn How to enable an authorization server in Spring Security OAuth 2 with:
OAuth 2 Client Credentials Grant Type (used for REST API security)
Client credentials (users) stored in database (MySQL)
Default security settings
Auto-generated, in-memory public & private keys
You will also learn how to Test Get Access Token API provided by the Spring authorization server with: Spring Boot Test, curl in command line, and Postman desktop program.
I will also show you how to decode the issued access tokens (JWT) using an online JWT decoder.
Key Technologies: Spring Boot 3.4.0, Spring Framework 6.2.0, Spring Data JPA with Hibernate framework, Spring Security 6.4.1, Spring Security OAuth 2 Authorization Server 1.4.0.
Software programs: Java Development Kit (OpenJDK), Spring Tool Suite IDE (STS), MySQL Community server, MySQL Workbench, curl command line tool,
Postman desktop app.
Learn the full course (Spring Boot REST APIs Ultimate): https://www.udemy.com/course/spring-b...
#springsecurity #AuthorizationServer #oauth2 #restapis #springframework #springboot #java
Timestamps
00:18 What You Will Learn
02:08 Create New Spring Starter Project
04:44 Roles of Authorization Server
05:48 Create Database and Configure Data Source Properties
08:07 Code Data Access Layer
20:25 Enable Spring Authorization Server
22:33 Write Code to Authenticate Client
28:02 Understand Get Access Token API
29:16 Code Tests for Get Access Token API
38:17 Decode Access Token
39:24 Test Get Access Token with curl
42:03 Test Get Access Token with Postman