Class PortalAuthenticationManager

java.lang.Object
io.meeds.spring.web.security.PortalAuthenticationManager
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

@Component public class PortalAuthenticationManager extends Object implements org.springframework.security.authentication.AuthenticationProvider
  • Constructor Details

    • PortalAuthenticationManager

      public PortalAuthenticationManager()
  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Specified by:
      authenticate in interface org.springframework.security.authentication.AuthenticationProvider
      Throws:
      org.springframework.security.core.AuthenticationException
    • supports

      public boolean supports(Class<?> authentication)
      Specified by:
      supports in interface org.springframework.security.authentication.AuthenticationProvider
    • getCurrentState

      public org.exoplatform.services.security.ConversationState getCurrentState(jakarta.servlet.http.HttpServletRequest httpRequest) throws Exception
      Throws:
      Exception
    • getExtendedAuthorities

      protected List<org.springframework.security.core.GrantedAuthority> getExtendedAuthorities(Principal userPrincipal)
      A method to allow extending attributed roles to user in current portal context
      Parameters:
      userPrincipal - current user Principal
      Returns:
      List of GrantedAuthority to add to current user