Class AADAppRoleStatelessAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- com.azure.spring.autoconfigure.aad.AADAppRoleStatelessAuthenticationFilter
-
- 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 AADAppRoleStatelessAuthenticationFilter extends org.springframework.web.filter.OncePerRequestFilter
Deprecated.See the Alternative method.A stateless authentication filter which uses app roles feature of Azure Active Directory. Since it's a stateless implementation so the principal will not be stored in session. By using roles claim in the token it will not call Microsoft Graph to retrieve users' groups.
-
-
Constructor Summary
Constructors Constructor Description AADAppRoleStatelessAuthenticationFilter(UserPrincipalManager principalManager)Deprecated.Creates a new instance ofAADAppRoleStatelessAuthenticationFilter.
-
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.protected Set<org.springframework.security.core.authority.SimpleGrantedAuthority>toSimpleGrantedAuthoritySet(UserPrincipal userPrincipal)Deprecated.Converts to user principal to a set of simple granted authorities.-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Constructor Detail
-
AADAppRoleStatelessAuthenticationFilter
public AADAppRoleStatelessAuthenticationFilter(UserPrincipalManager principalManager)
Deprecated.Creates a new instance ofAADAppRoleStatelessAuthenticationFilter.- Parameters:
principalManager- 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
-
toSimpleGrantedAuthoritySet
protected Set<org.springframework.security.core.authority.SimpleGrantedAuthority> toSimpleGrantedAuthoritySet(UserPrincipal userPrincipal)
Deprecated.Converts to user principal to a set of simple granted authorities.- Parameters:
userPrincipal- the user principal- Returns:
- A set of SimpleGrantedAuthoritys
-
-