AuthorizationServer
Spring Authorization Server - 엔드포인트 프로토콜
OAuth 2.0 AuthorizationServer Endpoint
OAuth2AuthorizationEndpointConfigurer
OAuth2AuthorizationEndpointFilter
RequestMatcher
사용자 정의 기능

흐름 및 아키텍처

1. Resource Owner 인증 전 단계

1.1 임시코드 요청

1.2 OAuth2AuthorizationEndpointFilter

1.3 DelegatingAuthenticationConverter -> OAuth2AuthorizationCodeRequestAuthenticationConverter

1.4 ProviderManager -> OAuth2AuthorizationCodeRequestAuthenticationProvider

1.5 - ExceptionTranslationFilter -> AuthenticationEntryPoint

2. 동의(Consent)
OAuth2AuthorizationConsent

OAuth2AuthorizationConsentService

2. ResourceOwner 인증 및 Scope 동의 단계

2.1 UsernamePasswordAuthenticationFilter -> SavedRequestAwareAuthenticationSuccessHandler

2.2 ProviderManager -> OAuth2AuthorizationCodeRequestAuthenticationProvider

2.3 OAuth2AuthorizationEndpointFilter -> sendAuthorizationConsent()



2.4 OAuth2AuthorizationEndpointFilter -> OAuth2AuthorizationConsentAuthenticationConverter

2.5 OAuth2AuthorizationConsentAuthenticationProvider

2.6 OAuth2AuthorizationEndpointFilter -> sendAuthorizationResponse()


마지막 업데이트