public class DefaultOIDCAuthenticationStrategyDelegate extends AbstractOAuthClientAuthenticationStrategyDelegate
OAuth2AuthenticationToken
. Marked with
@Order(LOWEST_PRECEDENCE)
to ensure this will always be the last
AuthenticationStrategyDelegate
in the list.Constructor and Description |
---|
DefaultOIDCAuthenticationStrategyDelegate(OAuth2UserDetailsService oAuth2UserDetailsService,
UserRegistrationService<User> registrationService,
AuthRegistrationProperties registrationProperties,
AuthorizedClientService<AuthorizedClient> clientService,
ClientIdentityProviderProperties clientProperties,
com.broadleafcommerce.common.extension.TypeFactory typeFactory,
PasscodeService<PasswordToken,User> passcodeService) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandle(@NonNull org.springframework.security.core.Authentication authentication)
Check if the given Authentication is an
OAuth2AuthenticationToken and the
registration id matches AbstractOAuthClientAuthenticationStrategyDelegate.getOAuthRegistrationType() |
protected String |
getOAuthRegistrationType()
Gets the registration type / client registration id that this delegate handles
|
buildUsername, getClientId, getEmail, getName
buildUserRegistration, generateRandomPassword, getAuthorizedClient, getClientProperties, getClientService, getOAuth2UserDetails, getOAuth2UserDetailsService, getPasscodeService, getRegistrationProperties, getRegistrationService, getTypeFactory, getUsername, getUserType, isAutoRegister, registerNewUser
public DefaultOIDCAuthenticationStrategyDelegate(OAuth2UserDetailsService oAuth2UserDetailsService, UserRegistrationService<User> registrationService, AuthRegistrationProperties registrationProperties, AuthorizedClientService<AuthorizedClient> clientService, ClientIdentityProviderProperties clientProperties, com.broadleafcommerce.common.extension.TypeFactory typeFactory, PasscodeService<PasswordToken,User> passcodeService)
public boolean canHandle(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
AbstractOAuthClientAuthenticationStrategyDelegate
OAuth2AuthenticationToken
and the
registration id matches AbstractOAuthClientAuthenticationStrategyDelegate.getOAuthRegistrationType()
canHandle
in interface AuthenticationStrategyDelegate
canHandle
in class AbstractOAuthClientAuthenticationStrategyDelegate
authentication
- The authentication tokenprotected String getOAuthRegistrationType()
AbstractOAuthClientAuthenticationStrategyDelegate
getOAuthRegistrationType
in class AbstractOAuthClientAuthenticationStrategyDelegate
Copyright © 2021. All rights reserved.