Closed
Description
An authorization server provides an authorization endpoint, which it uses when interacting with the resource owner to obtain authorization for a client.
The OAuth2AuthorizationEndpointFilter
should be implemented as a Filter
. The OAuth2AuthorizationRequestRedirectFilter
in the spring-security-oauth2-client
module is the client Filter
that redirects to the Authorization Endpoint.
Implementation Requirements
- the
Filter
should process requests for the (default) path/oauth2/authorize
authorizationRequestConverter
should convert a valid Authorization Request toOAuth2AuthorizationRequest
- the
RegisteredClientRepository
Implement Client Registration Model / Repository #40 should be used to validate theclient_id
parameter - the
OAuth2AuthorizationService
Implement Authorization Model / Service #43 should be used to persist the in-flightOAuth2Authorization
- the
codeGenerator
should be used to generate the authorizationcode
parameter and it should also be stored inOAuth2Authorization.attributes
for later validation in Implement Token Endpoint #67 - javadoc
class
andpublic
methods - Unit tests
Specification References
3.1. Authorization Endpoint
4.1. Authorization Code Grant
4.1.1. Authorization Request
4.1.2. Authorization Response