Package io.meeds.oauth2.server.security
Class OAuthPortalAuthenticationProvider
java.lang.Object
io.meeds.oauth2.server.security.OAuthPortalAuthenticationProvider
- All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider
@Component
public class OAuthPortalAuthenticationProvider
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) protected org.springframework.security.core.Authenticationauthenticate(org.springframework.web.context.request.ServletRequestAttributes requestAttributes) org.exoplatform.services.security.IdentitygetCurrentIdentity(jakarta.servlet.http.HttpServletRequest httpRequest) booleanisAnonymousUser(org.exoplatform.services.security.Identity identity) boolean
-
Constructor Details
-
OAuthPortalAuthenticationProvider
public OAuthPortalAuthenticationProvider()
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceorg.springframework.security.authentication.AuthenticationProvider
-
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
-
getCurrentIdentity
public org.exoplatform.services.security.Identity getCurrentIdentity(jakarta.servlet.http.HttpServletRequest httpRequest) -
isAnonymousUser
public boolean isAnonymousUser(org.exoplatform.services.security.Identity identity) -
authenticate
protected org.springframework.security.core.Authentication authenticate(org.springframework.web.context.request.ServletRequestAttributes requestAttributes)
-