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, getNamebuildUserRegistration, generateRandomPassword, getAuthorizedClient, getClientProperties, getClientService, getOAuth2UserDetails, getOAuth2UserDetailsService, getPasscodeService, getRegistrationProperties, getRegistrationService, getTypeFactory, getUsername, getUserType, isAutoRegister, registerNewUserpublic 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)
AbstractOAuthClientAuthenticationStrategyDelegateOAuth2AuthenticationToken and the
registration id matches AbstractOAuthClientAuthenticationStrategyDelegate.getOAuthRegistrationType()canHandle in interface AuthenticationStrategyDelegatecanHandle in class AbstractOAuthClientAuthenticationStrategyDelegateauthentication - The authentication tokenprotected String getOAuthRegistrationType()
AbstractOAuthClientAuthenticationStrategyDelegategetOAuthRegistrationType in class AbstractOAuthClientAuthenticationStrategyDelegateCopyright © 2021. All rights reserved.