Class AADAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- com.azure.spring.autoconfigure.aad.AADAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
@Deprecated public class AADAuthenticationFilter extends org.springframework.web.filter.OncePerRequestFilter
Deprecated.See the Alternative method.A stateful authentication filter which uses Microsoft Graph groups to authorize. Both ID token and access token are supported. In the case of access token, only access token issued for the exact same application this filter used for could be accepted, e.g. access token issued for Microsoft Graph could not be processed by users' application.
-
-
Constructor Summary
Constructors Constructor Description AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, UserPrincipalManager userPrincipalManager)Deprecated.Creates a new instance ofAADAuthenticationFilter.AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, com.nimbusds.jose.util.ResourceRetriever resourceRetriever)Deprecated.Creates a new instance ofAADAuthenticationFilter.AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, com.nimbusds.jose.util.ResourceRetriever resourceRetriever, com.nimbusds.jose.jwk.source.JWKSetCache jwkSetCache)Deprecated.Creates a new instance ofAADAuthenticationFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)Deprecated.-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Constructor Detail
-
AADAuthenticationFilter
public AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, com.nimbusds.jose.util.ResourceRetriever resourceRetriever)
Deprecated.Creates a new instance ofAADAuthenticationFilter.- Parameters:
aadAuthenticationProperties- the AAD authentication propertiesendpoints- the AAD authorization server endpointsresourceRetriever- the resource retriever
-
AADAuthenticationFilter
public AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, com.nimbusds.jose.util.ResourceRetriever resourceRetriever, com.nimbusds.jose.jwk.source.JWKSetCache jwkSetCache)
Deprecated.Creates a new instance ofAADAuthenticationFilter.- Parameters:
aadAuthenticationProperties- the AAD authentication propertiesendpoints- the AAD authorization server endpointsresourceRetriever- the resource retrieverjwkSetCache- the JWK set cache
-
AADAuthenticationFilter
public AADAuthenticationFilter(AADAuthenticationProperties aadAuthenticationProperties, AADAuthorizationServerEndpoints endpoints, UserPrincipalManager userPrincipalManager)
Deprecated.Creates a new instance ofAADAuthenticationFilter.- Parameters:
aadAuthenticationProperties- the AAD authentication propertiesendpoints- the AAD authorization server endpointsuserPrincipalManager- the user principal manager
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOExceptionDeprecated.- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionIOException
-
-