Class SecurityContextAwareProviderLoginSupport

java.lang.Object
org.craftercms.security.social.impl.ProviderLoginSupportImpl
org.craftercms.engine.util.spring.security.profile.SecurityContextAwareProviderLoginSupport
All Implemented Interfaces:
org.craftercms.security.social.ProviderLoginSupport

public class SecurityContextAwareProviderLoginSupport extends org.craftercms.security.social.impl.ProviderLoginSupportImpl
Wrapper for ProviderLoginSupportImpl that integrates the authenticated profile with Spring Security
Since:
3.1.5
Author:
joseross
  • Field Summary

    Fields inherited from class org.craftercms.security.social.impl.ProviderLoginSupportImpl

    authenticationManager, connectionFactoryLocator, connectSupport, PARAM_CODE, PARAM_ERROR, PARAM_ERROR_DESCRIPTION, PARAM_ERROR_URI, PARAM_OAUTH_TOKEN, profileService, textEncryptor
  • Constructor Summary

    Constructors
    Constructor
    Description
    SecurityContextAwareProviderLoginSupport(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator, org.craftercms.profile.api.services.ProfileService profileService, org.craftercms.security.authentication.AuthenticationManager authenticationManager, org.craftercms.commons.crypto.TextEncryptor textEncryptor)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.craftercms.security.authentication.Authentication
    complete(String tenant, String providerId, jakarta.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes, org.springframework.social.connect.web.ConnectSupport connectSupport)
     

    Methods inherited from class org.craftercms.security.social.impl.ProviderLoginSupportImpl

    complete, complete, completeConnection, createProfile, getConnectionFactory, getProfile, setConnectSupport, start, start, start, updateProfileConnectionData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SecurityContextAwareProviderLoginSupport

      public SecurityContextAwareProviderLoginSupport(org.springframework.social.connect.ConnectionFactoryLocator connectionFactoryLocator, org.craftercms.profile.api.services.ProfileService profileService, org.craftercms.security.authentication.AuthenticationManager authenticationManager, org.craftercms.commons.crypto.TextEncryptor textEncryptor)
  • Method Details

    • complete

      public org.craftercms.security.authentication.Authentication complete(String tenant, String providerId, jakarta.servlet.http.HttpServletRequest request, Set<String> newUserRoles, Map<String,Object> newUserAttributes, org.springframework.social.connect.web.ConnectSupport connectSupport) throws org.craftercms.security.exception.AuthenticationException
      Specified by:
      complete in interface org.craftercms.security.social.ProviderLoginSupport
      Overrides:
      complete in class org.craftercms.security.social.impl.ProviderLoginSupportImpl
      Throws:
      org.craftercms.security.exception.AuthenticationException