Package com.azure.spring.aad.webapp
Class AADHandleConditionalAccessFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- com.azure.spring.aad.webapp.AADHandleConditionalAccessFilter
-
- 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
public class AADHandleConditionalAccessFilter extends org.springframework.web.filter.OncePerRequestFilterHandle theWebClientResponseExceptionin On-Behalf-Of flow.When the resource-server needs re-acquire token(The request requires higher privileges than provided by the access token in On-Behalf-Of flow.), it can sent a 403 with information in the WWW-Authenticate header to web client ,web client will throw
WebClientResponseException, web-application can handle this exception to challenge the user.
-
-
Constructor Summary
Constructors Constructor Description AADHandleConditionalAccessFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
IOExceptionjavax.servlet.ServletException
-
-