Skip to content

Implement authorization_code AuthenticationProvider #68

Closed
@jgrandja

Description

@jgrandja

The OAuth2AuthorizationCodeAuthenticationProvider is responsible for authenticating the authorization code parameter.

Implementation Requirements

  • the OAuth2TokenEndpointFilter Implement Token Endpoint #67 indirectly calls this AuthenticationProvider by passing in OAuth2AuthorizationCodeAuthenticationToken
  • the RegisteredClientRepository Implement Client Registration Model / Repository #40 should be used to validate the client_id parameter if the client was not previously authenticated
  • the OAuth2AuthorizationService Implement Authorization Model / Service #43 should be used to lookup the OAuth2Authorization using the code parameter
  • the accessTokenGenerator should be used to generate an opaque access token. NOTE: This will later be re-factored to generate a JWT
  • the access token should be returned by OAuth2AuthorizationCodeAuthenticationProvider in a OAuth2AccessTokenAuthenticationToken
  • javadoc class and public methods
  • Unit tests

Specification References

3.1. Token Endpoint
4.1. Authorization Code Grant
4.1.3. Access Token Request
4.1.4. Access Token Response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions