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)
Author:
Marek Posolda
  • Field Summary

    Fields inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor

    PORTAL_CONTAINER_SUBSTITUTION_PATTERN

    Fields inherited from class org.exoplatform.container.web.AbstractFilter

    config, servletContextName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain)
     
    protected void
     

    Methods inherited from class org.gatein.sso.agent.filter.api.AbstractSSOInterceptor

    afterInit, getExoContainer, getInitParameter, initWithParams

    Methods inherited from class org.exoplatform.container.web.AbstractFilter

    getContainer, getServletContext, init, requirePortalEnvironment

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface jakarta.servlet.Filter

    init
  • Constructor Details

    • OAuthLinkAccountFilter

      public OAuthLinkAccountFilter()
  • Method Details

    • initImpl

      protected void initImpl()
      Specified by:
      initImpl in class org.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:
      IOException
      jakarta.servlet.ServletException