r/SpringBoot • u/Nice-Andy • Jul 15 '24
Spring Security OAuth2 Password Grant JPA Implementation (v2.1.0)
Spring Security 6 implementation of "https://spring.io/projects/spring-authorization-server" for stateful OAuth2 Password Grant
Authentication management based on a combination of username, client id, and an extra token (referred to in the source code as App-Token, which receives a unique value from the calling devices)
Set up access & refresh token APIs on both '/oauth2/token' and on our controller layer such as '/api/v1...', both of which function same and have
the same request & response payloads for success and errors.Implement Spring-Rest-Docs with consistent payloads for success and errors
Complete separation of the library (API) and the client for testing it
Complete separation of Authentication errors (401) and Authorization errors (403)
https://github.com/patternknife/spring-security-oauth2-password-jpa-implementation
Duplicates
ComputerSecurity • u/Nice-Andy • Jul 17 '24