Class CumulocityOAuthMicroserviceFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- com.cumulocity.microservice.security.token.CumulocityOAuthMicroserviceFilter
-
- 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 CumulocityOAuthMicroserviceFilter extends org.springframework.web.filter.GenericFilterBean
Purpose of this class is to take care of authentication against platform of 1. Authorization Bearer header 2. Access token in cookies
-
-
Constructor Summary
Constructors Constructor Description CumulocityOAuthMicroserviceFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint, ContextService<UserCredentials> userContextService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain)
-
-
-
Constructor Detail
-
CumulocityOAuthMicroserviceFilter
public CumulocityOAuthMicroserviceFilter(org.springframework.security.authentication.AuthenticationManager authenticationManager, org.springframework.security.web.AuthenticationEntryPoint authenticationEntryPoint, ContextService<UserCredentials> userContextService)
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
-