Uses of Interface
com.broadleafcommerce.auth.user.domain.OAuth2UserDetails
Packages that use OAuth2UserDetails
Package
Description
-
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.authorization.security.embedded.code
Methods in com.broadleafcommerce.auth.authorization.security.embedded.code that return OAuth2UserDetailsConstructors in com.broadleafcommerce.auth.authorization.security.embedded.code with parameters of type OAuth2UserDetailsModifierConstructorDescriptionEmbeddedLoginCodeAuthenticationToken
(Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, OAuth2UserDetails userDetails, String clientId, String username, Set<String> requestedScopes, String purpose, Map<String, Object> additionalParameters) Constructor for post-authentication. -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.authorization.security.rememberme.service
Methods in com.broadleafcommerce.auth.authorization.security.rememberme.service that return OAuth2UserDetailsModifier and TypeMethodDescriptionRememberMeLoginAuthenticationStrategyDelegate.getOAuth2UserDetails
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.resource.service
Methods in com.broadleafcommerce.auth.resource.service that return OAuth2UserDetailsModifier and TypeMethodDescriptionprotected OAuth2UserDetails
DefaultUserOperationService.loadUserDetails
(String clientId) This is a flexible method that can load theOAuth2UserDetails
for the currently authenticated user both in the session-token-authentication case and the bearer-token-authentication case. -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.domain
Classes in com.broadleafcommerce.auth.user.domain that implement OAuth2UserDetails -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.endpoint
Methods in com.broadleafcommerce.auth.user.endpoint with parameters of type OAuth2UserDetailsModifier and TypeMethodDescriptionprotected AuthorizedClient
DefaultImpersonationRequestValidator.getImpersonatedClient
(OAuth2UserDetails impersonatedUser) void
DefaultImpersonationRequestValidator.validateUserImpersonation
(ImpersonationRequest impersonationRequest, OAuth2UserDetails impersonatedUser, String csrUserId) void
ImpersonationRequestValidator.validateUserImpersonation
(ImpersonationRequest impersonationRequest, OAuth2UserDetails impersonatedUser, String csrUserId) Validates that the user requested to be impersonated is able to be impersonated. -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.service
Methods in com.broadleafcommerce.auth.user.service that return OAuth2UserDetailsModifier and TypeMethodDescriptionprotected OAuth2UserDetails
DefaultOAuth2UserDetailsService.buildUserDetails
(User user, String clientId, String serverId) protected OAuth2UserDetails
DefaultSessionAuthenticationStrategy.getOAuth2UserDetails
(@NonNull AuthenticationStrategyDelegate delegate, @NonNull org.springframework.security.core.Authentication authentication, AuthorizedClient client) DefaultOAuth2UserDetailsService.loadAnonymousCsrUser
(String clientId) OAuth2UserDetailsService.loadAnonymousCsrUser
(String clientId) DefaultOAuth2UserDetailsService.loadByClientAndUsername
(AuthorizedClient client, String username) OAuth2UserDetailsService.loadByClientAndUsername
(AuthorizedClient client, String username) protected OAuth2UserDetails
DefaultOAuth2UserDetailsService.loadByUsernameClientServer
(String username, String clientId, String serverId) DefaultOAuth2UserDetailsService.loadCsrUser
(String clientId, String csrId) OAuth2UserDetailsService.loadCsrUser
(String clientId, String csrId) DefaultOAuth2UserDetailsService.loadUserByClientIdAndUsername
(String clientId, String username) OAuth2UserDetailsService.loadUserByClientIdAndUsername
(String clientId, String username) Methods in com.broadleafcommerce.auth.user.service with parameters of type OAuth2UserDetailsModifier and TypeMethodDescriptionDefaultImpersonationClaimsEnhancer.enhance
(Map<String, Object> claims, OAuth2UserDetails impersonatedUser, ImpersonationRequestToken impersonationRequestToken) ImpersonationClaimsEnhancer.enhance
(Map<String, Object> claims, OAuth2UserDetails impersonatedUser, ImpersonationRequestToken impersonationRequestToken) Provides an opportunity for customization of the claims for an impersonatedOAuth2SessionToken
.ImpersonationClaimsEnhancerChain.enhance
(Map<String, Object> claims, OAuth2UserDetails impersonatedUser, ImpersonationRequestToken impersonationRequestToken) DefaultImpersonationService.getImpersonationSessionToken
(ImpersonationRequestToken token, OAuth2UserDetails impersonatedUser) ImpersonationService.getImpersonationSessionToken
(ImpersonationRequestToken impersonationRequest, OAuth2UserDetails impersonatedUser) Creates anOAuth2SessionToken
for the validatedImpersonationRequest
.protected void
DefaultSessionAuthenticationStrategy.populateThirdPartyLoginClaimsIfApplicable
(@NonNull AuthenticationStrategyDelegate delegate, @NonNull org.springframework.security.core.Authentication authentication, AuthorizedClient authorizedClient, @NonNull OAuth2UserDetails oAuth2UserDetails, Map<String, Object> destinationClaimsMap) If this is a session token issued after successful third party login, set additional claims on the session token.protected void
DefaultSessionAuthenticationStrategy.setSessionCookie
(@NonNull jakarta.servlet.http.HttpServletResponse response, @NonNull AuthenticationStrategyDelegate delegate, @NonNull org.springframework.security.core.Authentication authentication, AuthorizedClient authorizedClient, @NonNull OAuth2UserDetails oAuth2UserDetails) -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.session
Methods in com.broadleafcommerce.auth.user.session with parameters of type OAuth2UserDetailsModifier and TypeMethodDescriptionprotected org.springframework.security.core.Authentication
OAuth2SessionAuthenticationProvider.createSuccessAuthentication
(OAuth2UserDetails user, OAuth2SessionToken sessionToken) protected Collection<org.springframework.security.core.GrantedAuthority>
OAuth2SessionAuthenticationProvider.getAuthorities
(OAuth2UserDetails user, OAuth2SessionToken sessionToken) protected void
OAuth2SessionAuthenticationProvider.validateUserDetails
(OAuth2UserDetails userDetails, String clientId, OAuth2SessionToken sessionToken) -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.session.token.enhancer
Methods in com.broadleafcommerce.auth.user.session.token.enhancer that return OAuth2UserDetailsModifier and TypeMethodDescriptionprotected OAuth2UserDetails
UserRestrictionAccessTokenEnhancer.getUserDetails
(org.springframework.security.core.Authentication sessionToken) -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.web.authentication.session
Methods in com.broadleafcommerce.auth.user.web.authentication.session that return OAuth2UserDetailsModifier and TypeMethodDescriptionAbstractAuthenticationStrategyDelegate.getOAuth2UserDetails
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) Get the clientId and username from the token to load from the database.default OAuth2UserDetails
AuthenticationStrategyDelegate.getOAuth2UserDetails
(org.springframework.security.core.Authentication authentication) Deprecated.AuthenticationStrategyDelegate.getOAuth2UserDetails
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) Map the Authentication token to an OAuth2UserDetailsFormLoginAuthenticationStrategyDelegate.getOAuth2UserDetails
(org.springframework.security.core.Authentication authentication, AuthorizedClient client) -
Uses of OAuth2UserDetails in com.broadleafcommerce.auth.user.web.endpoint
Methods in com.broadleafcommerce.auth.user.web.endpoint that return OAuth2UserDetailsModifier and TypeMethodDescriptionprotected OAuth2UserDetails
ImpersonationEndpoint.getCsrUser
(String clientId, String csrId) protected OAuth2UserDetails
ImpersonationEndpoint.getUserToImpersonate
(String clientId, String username) protected OAuth2UserDetails
ImpersonationEndpoint.loadAnonymousCsrUser
(String clientId) Methods in com.broadleafcommerce.auth.user.web.endpoint with parameters of type OAuth2UserDetailsModifier and TypeMethodDescriptionprotected void
ImpersonationEndpoint.addSessionCookie
(jakarta.servlet.http.HttpServletResponse response, ImpersonationRequestToken impersonationRequest, OAuth2UserDetails impersonatedUser)
AuthenticationStrategyDelegate.getOAuth2UserDetails(Authentication, AuthorizedClient)