| | |
| | | public class ServiceConfiguration { |
| | | @Bean |
| | | public FilterRegistrationBean jwtFilter() { |
| | | StringBuffer exclusions = new StringBuffer(); |
| | | exclusions.append("/callComponent/login/*,"); |
| | | exclusions.append("/callComponent/register/*,"); |
| | | exclusions.append("/callComponent/validate-code/*,"); |
| | | exclusions.append("/callComponent/validate-tel/*,"); |
| | | exclusions.append("/flow/login,"); |
| | | exclusions.append("/flow/register"); |
| | | final FilterRegistrationBean registrationBean = new FilterRegistrationBean(); |
| | | registrationBean.setFilter(new JwtFilter()); |
| | | //registrationBean.addUrlPatterns("/"); |
| | | registrationBean.addUrlPatterns("/console/*"); |
| | | registrationBean.addUrlPatterns("/"); |
| | | registrationBean.addUrlPatterns("/callComponent/*"); |
| | | registrationBean.addUrlPatterns("/flow/*"); |
| | | registrationBean.addInitParameter("excludedUri",exclusions.toString()); |
| | | |
| | | return registrationBean; |
| | | } |