public class NuxeoOAuth2Filter extends Object implements NuxeoAuthPreFilter
Modifier and Type | Field and Description |
---|---|
static String |
ACCESS_TOKEN_PARAM |
static String |
AUTHORIZATION_HEADER |
static String |
BEARER_AUTHENTICATION_SCHEME |
protected OAuth2TokenStore |
tokenStore |
Constructor and Description |
---|
NuxeoOAuth2Filter() |
Modifier and Type | Method and Description |
---|---|
protected LoginContext |
buildLoginContext(NuxeoOAuth2Token token) |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
Main Filter method
Filter . |
protected String |
getAccessToken(javax.servlet.http.HttpServletRequest request) |
protected void |
processAuthentication(String accessToken,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain) |
public static final String ACCESS_TOKEN_PARAM
public static final String AUTHORIZATION_HEADER
public static final String BEARER_AUTHENTICATION_SCHEME
protected OAuth2TokenStore tokenStore
public NuxeoOAuth2Filter()
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
NuxeoAuthPreFilter
Filter
. The FilterChain is only composed of the preFilters and the
NuxeoAuthenticationFilterdoFilter
in interface NuxeoAuthPreFilter
IOException
javax.servlet.ServletException
FilterChain
protected void processAuthentication(String accessToken, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
protected String getAccessToken(javax.servlet.http.HttpServletRequest request)
protected LoginContext buildLoginContext(NuxeoOAuth2Token token)
Copyright © 2018 Nuxeo. All rights reserved.