Closed
Description
The OAuth2AuthorizationCodeAuthenticationProvider
is responsible for authenticating the authorization code
parameter.
Implementation Requirements
- the
OAuth2TokenEndpointFilter
Implement Token Endpoint #67 indirectly calls thisAuthenticationProvider
by passing inOAuth2AuthorizationCodeAuthenticationToken
- the
RegisteredClientRepository
Implement Client Registration Model / Repository #40 should be used to validate theclient_id
parameter if the client was not previously authenticated - the
OAuth2AuthorizationService
Implement Authorization Model / Service #43 should be used to lookup theOAuth2Authorization
using thecode
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 aOAuth2AccessTokenAuthenticationToken
- javadoc
class
andpublic
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