Class OidcClientConfigurationAuthenticationProvider
java.lang.Object
org.springframework.security.oauth2.server.authorization.oidc.authentication.OidcClientConfigurationAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
public final class OidcClientConfigurationAuthenticationProvider
extends Object
implements org.springframework.security.authentication.AuthenticationProvider
An
AuthenticationProvider
implementation for OpenID Connect 1.0 Dynamic Client
Configuration Endpoint.-
Constructor Summary
ConstructorsConstructorDescriptionOidcClientConfigurationAuthenticationProvider
(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService) Constructs anOidcClientConfigurationAuthenticationProvider
using the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authentication
authenticate
(org.springframework.security.core.Authentication authentication) void
setClientRegistrationConverter
(org.springframework.core.convert.converter.Converter<RegisteredClient, OidcClientRegistration> clientRegistrationConverter) boolean
-
Constructor Details
-
OidcClientConfigurationAuthenticationProvider
public OidcClientConfigurationAuthenticationProvider(RegisteredClientRepository registeredClientRepository, OAuth2AuthorizationService authorizationService) Constructs anOidcClientConfigurationAuthenticationProvider
using the provided parameters.- Parameters:
registeredClientRepository
- the repository of registered clientsauthorizationService
- the authorization service
-
-
Method Details
-
setClientRegistrationConverter
public void setClientRegistrationConverter(org.springframework.core.convert.converter.Converter<RegisteredClient, OidcClientRegistration> clientRegistrationConverter) - Parameters:
clientRegistrationConverter
- theConverter
used for converting aRegisteredClient
to anOidcClientRegistration
- Since:
- 1.2.0
-
authenticate
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException - Specified by:
authenticate
in interfaceorg.springframework.security.authentication.AuthenticationProvider
- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supports
in interfaceorg.springframework.security.authentication.AuthenticationProvider
-