public class AADAuthenticationFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Modifier and Type | Field and Description |
|---|---|
private AADAuthenticationFilterProperties |
aadAuthFilterProp |
private static String |
CURRENT_USER_PRINCIPAL |
private static String |
CURRENT_USER_PRINCIPAL_GRAPHAPI_TOKEN |
private static org.slf4j.Logger |
log |
private ServiceEndpointsProperties |
serviceEndpointsProp |
private static String |
TOKEN_HEADER |
private static String |
TOKEN_TYPE |
| Constructor and Description |
|---|
AADAuthenticationFilter(AADAuthenticationFilterProperties aadAuthFilterProp,
ServiceEndpointsProperties serviceEndpointsProp) |
| Modifier and Type | Method and Description |
|---|---|
private com.microsoft.aad.adal4j.AuthenticationResult |
acquireTokenForGraphApi(String idToken,
String tenantId,
ServiceEndpoints serviceEndpoints) |
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchprivate static final org.slf4j.Logger log
private static final String CURRENT_USER_PRINCIPAL
private static final String CURRENT_USER_PRINCIPAL_GRAPHAPI_TOKEN
private static final String TOKEN_HEADER
private static final String TOKEN_TYPE
private AADAuthenticationFilterProperties aadAuthFilterProp
private ServiceEndpointsProperties serviceEndpointsProp
public AADAuthenticationFilter(AADAuthenticationFilterProperties aadAuthFilterProp, ServiceEndpointsProperties serviceEndpointsProp)
private com.microsoft.aad.adal4j.AuthenticationResult acquireTokenForGraphApi(String idToken, String tenantId, ServiceEndpoints serviceEndpoints) throws Throwable
Throwableprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionIOExceptionCopyright © 2018 Microsoft. All rights reserved.