Skip to content

Implement Authorization Endpoint #66

Closed
@jgrandja

Description

@jgrandja

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 to OAuth2AuthorizationRequest
  • the RegisteredClientRepository Implement Client Registration Model / Repository #40 should be used to validate the client_id parameter
  • the OAuth2AuthorizationService Implement Authorization Model / Service #43 should be used to persist the in-flight OAuth2Authorization
  • the codeGenerator should be used to generate the authorization code parameter and it should also be stored in OAuth2Authorization.attributes for later validation in Implement Token Endpoint #67
  • javadoc class and public methods
  • Unit tests

Specification References

3.1. Authorization Endpoint
4.1. Authorization Code Grant
4.1.1. Authorization Request
4.1.2. Authorization Response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions