Package io.meeds.oauth.web.facebook
Class FacebookFilter
java.lang.Object
org.exoplatform.container.web.AbstractFilter
org.gatein.sso.agent.filter.api.AbstractSSOInterceptor
io.meeds.oauth.web.OAuthProviderFilter<FacebookAccessTokenContext>
io.meeds.oauth.web.facebook.FacebookFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.gatein.sso.agent.filter.api.SSOInterceptor
Filter for integration with authentication handhsake via Facebook with usage
of OAuth2
- Author:
- Marek Posolda
-
Field Summary
Fields inherited from class io.meeds.oauth.web.OAuthProviderFilter
log, providerKeyFields 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
Modifier and TypeMethodDescriptionprotected OAuthPrincipal<FacebookAccessTokenContext>getOAuthPrincipal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InteractionState<FacebookAccessTokenContext> interactionState) protected OAuthProviderType<FacebookAccessTokenContext>protected voidinitInteraction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) protected StringobtainCustomScopeIfAvailable(javax.servlet.http.HttpServletRequest httpRequest) Methods inherited from class io.meeds.oauth.web.OAuthProviderFilter
destroy, doFilter, getAuthenticationRegistry, getOauthProvider, getOauthProviderProcessor, getOAuthProviderTypeRegistry, getSocialNetworkService, initImpl, redirectAfterOAuthError, saveInitialURI, saveRememberMeMethods 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 javax.servlet.Filter
init
-
Constructor Details
-
FacebookFilter
public FacebookFilter()
-
-
Method Details
-
getOAuthProvider
- Specified by:
getOAuthProviderin classOAuthProviderFilter<FacebookAccessTokenContext>
-
initInteraction
protected void initInteraction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) - Specified by:
initInteractionin classOAuthProviderFilter<FacebookAccessTokenContext>
-
getOAuthPrincipal
protected OAuthPrincipal<FacebookAccessTokenContext> getOAuthPrincipal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, InteractionState<FacebookAccessTokenContext> interactionState) - Specified by:
getOAuthPrincipalin classOAuthProviderFilter<FacebookAccessTokenContext>
-
obtainCustomScopeIfAvailable
- Overrides:
obtainCustomScopeIfAvailablein classOAuthProviderFilter<FacebookAccessTokenContext>
-