Package io.meeds.spring.web.security
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) org.exoplatform.services.security.ConversationStategetCurrentState(jakarta.servlet.http.HttpServletRequest httpRequest) protected List<org.springframework.security.core.GrantedAuthority> getExtendedAuthorities(Principal userPrincipal) A method to allow extending attributed roles to user in current portal contextboolean
-
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:
authenticatein interfaceorg.springframework.security.authentication.AuthenticationProvider- Throws:
org.springframework.security.core.AuthenticationException
-
supports
- Specified by:
supportsin interfaceorg.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
-