Spring Authorization Server is a Spring-based library for implementing OAuth 2.0 and OpenID Connect authorization servers. It authenticates users and clients, issues tokens, and supports resource-server access. section 14.0
A minimal application starts with the authorization-server starter and separates protocol-endpoint security from ordinary application authentication. Default configuration issues non-opaque tokens. section 14.0 section 14.1
Configure these pieces for a working server:
- Apply protocol-endpoint security, enable OpenID Connect, and route unauthenticated users to login. section 14.1
- Define a second security filter chain with form login and authenticated requests. section 14.1
- Provide user details through UserDetailsService and PasswordEncoder. section 14.1
- Register client identifiers, secrets, authentication methods, redirect URIs, scopes, and grant types with RegisteredClientRepository. section 14.1
- Expose signing material through a JWKSource and configure general endpoints with AuthorizationServerSettings. section 14.1
Grant configuration
A registered client can use authorization_code, client_credentials, and refresh_token grants, with CLIENT_SECRET_BASIC authentication, a redirect URI, and the openid scope. section 14.1
Figure 14.1 Actors in the OAuth 2 scene. The authorization server protects the user and client details and issues tokens the client can use to get authorized when calling the resource server endpoints.
Use the actor diagram to connect the authorization server with users, clients, tokens, and protected resource-server endpoints. section 14.0


