public final class PublicClientAuthenticationProvider
extends java.lang.Object
implements org.springframework.security.authentication.AuthenticationProvider
AuthenticationProvider implementation used for OAuth 2.0 Public Client Authentication,
which authenticates the code_verifier parameter.AuthenticationProvider,
OAuth2ClientAuthenticationToken,
RegisteredClientRepository,
OAuth2AuthorizationService| Constructor and Description |
|---|
PublicClientAuthenticationProvider(RegisteredClientRepository registeredClientRepository,
OAuth2AuthorizationService authorizationService)
Constructs a
PublicClientAuthenticationProvider using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
boolean |
supports(java.lang.Class<?> authentication) |
public PublicClientAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService)
PublicClientAuthenticationProvider using the provided parameters.registeredClientRepository - the repository of registered clientsauthorizationService - the authorization servicepublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionpublic boolean supports(java.lang.Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProvider