Package io.meeds.oauth.web
Class OAuthLinkAccountFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
io.meeds.oauth.web.OAuthLinkAccountFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,org.gatein.sso.agent.filter.api.SSOInterceptor
public class OAuthLinkAccountFilter
extends org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
This filter has already access to authenticated OAuth principal, so it's work
starts after successful OAuth authentication. Filter is useful only for
logged user Responsibility of this filter is to finish "link social network"
functionality (Usecase where logged user wants to link his GateIn account
with social network)
-
Field Summary
Fields inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
PORTAL_CONTAINER_SUBSTITUTION_PATTERNFields inherited from class org.exoplatform.container.web.AbstractFilter
config, servletContextName -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
afterInit, getExoContainer, getInitParameter, initWithParamsMethods inherited from class org.exoplatform.container.web.AbstractFilter
getContainer, getServletContext, init, requirePortalEnvironmentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Filter
init
-
Constructor Details
-
OAuthLinkAccountFilter
public OAuthLinkAccountFilter()
-
-
Method Details
-
initImpl
protected void initImpl()- Specified by:
initImplin classorg.gatein.sso.agent.filter.api.AbstractSSOInterceptor
-
destroy
public void destroy() -
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-