Package ch.vd.shared.iam.web.filter.auth
Class IamAuthenticationSpringFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
-
- ch.vd.shared.iam.web.filter.auth.IamAuthenticationSpringFilter
-
- 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 IamAuthenticationSpringFilter extends AbstractSharedIamAuthenticationFilter implements org.springframework.beans.factory.InitializingBean
Prend les infos d'authentification de IAM dans la request et les met dans le contexte de sécurité Si la request de contient aucune info de sécurité, redirige sur l'url failureUrl- Author:
- jec
-
-
Field Summary
-
Fields inherited from class ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
IAM_AUTH_SAVED_PATH
-
-
Constructor Summary
Constructors Constructor Description IamAuthenticationSpringFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voiddoFilter(javax.servlet.ServletRequest r, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)voidsetFailureUrl(java.lang.String failureUrl)-
Methods inherited from class ch.vd.shared.iam.web.filter.auth.AbstractSharedIamAuthenticationFilter
authenticate, getUsedPrincipal, getUsernameForLog, setAdditionalProvider
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws javax.servlet.ServletException- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.web.filter.GenericFilterBean- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest r, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
java.io.IOExceptionjavax.servlet.ServletException
-
setFailureUrl
public void setFailureUrl(java.lang.String failureUrl)
-
-