OAuth2 Web application
Example of the web application, which uses OAuth2 client with authorization code grant flow. Users of application are authenticated by OAuth2 Authorization Server and application then gets access token on behalf of authenticated user, and cosumes resources via API from OAuth2 Resource Server.
Application utilizes the Spring Security OAuth2 Client, which supports: * logging-in users in using OAuth 2.0 or OpenID Connect 1.0 * obtaining an access token for application in order to access an API
The application also utilizes the Spring WebClient with the Spring Security extension, which adds capabilities as injection of access tokens into HTTP requests (Authorized WebClient).
- https://spring.io/blog/2023/08/22/tackling-the-oauth2-client-component-model-in-spring-security
- https://docs.spring.io/spring-security/reference/6.2-SNAPSHOT/servlet/oauth2/index.html#oauth2-client
- https://github.com/spring-projects/spring-security-samples/tree/6.3.x/servlet/spring-boot/java/oauth2/login