Class FormLoginAuthenticationStrategyDelegate
- java.lang.Object
-
- com.broadleafcommerce.auth.user.web.authentication.session.FormLoginAuthenticationStrategyDelegate
-
- All Implemented Interfaces:
AuthenticationStrategyDelegate
public class FormLoginAuthenticationStrategyDelegate extends Object implements AuthenticationStrategyDelegate
AuthenticationStrategyDelegate
to convertFormLoginAuthenticationToken
toOAuth2UserDetails
. With form login, theOAuth2UserDetails
are already on the token.- Author:
- Cade Rea (cade-rea)
-
-
Constructor Summary
Constructors Constructor Description FormLoginAuthenticationStrategyDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(@NonNull org.springframework.security.core.Authentication authentication)
Determine if this delegate can map the given Authentication token to an OAuth2UserDetailsOAuth2UserDetails
getOAuth2UserDetails(@NonNull org.springframework.security.core.Authentication authentication)
Map the Authentication token to an OAuth2UserDetails
-
-
-
Method Detail
-
canHandle
public boolean canHandle(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationStrategyDelegate
Determine if this delegate can map the given Authentication token to an OAuth2UserDetails- Specified by:
canHandle
in interfaceAuthenticationStrategyDelegate
- Parameters:
authentication
- The authentication token- Returns:
- Whether this delegate can map the token to an OAuth2UserDetails
-
getOAuth2UserDetails
public OAuth2UserDetails getOAuth2UserDetails(@NonNull @NonNull org.springframework.security.core.Authentication authentication)
Description copied from interface:AuthenticationStrategyDelegate
Map the Authentication token to an OAuth2UserDetails- Specified by:
getOAuth2UserDetails
in interfaceAuthenticationStrategyDelegate
- Parameters:
authentication
- The authentication token- Returns:
OAuth2UserDetails
for the givenauthentication
token
-
-