| | |
| | | .permitAll() |
| | | .and() |
| | | .authorizeRequests() |
| | | .antMatchers(API_ROOT_URL).authenticated() // Protected API End-points |
| | | .and() |
| | | .addFilterBefore(new CustomCorsFilter(), UsernamePasswordAuthenticationFilter.class) |
| | | .addFilterBefore(buildLoginProcessingFilter(AUTHENTICATION_URL), UsernamePasswordAuthenticationFilter.class); |
| | | .antMatchers(API_ROOT_URL).authenticated(); // Protected API End-points |
| | | // .and() |
| | | // .addFilterBefore(new CustomCorsFilter(), UsernamePasswordAuthenticationFilter.class) |
| | | // .addFilterBefore(buildLoginProcessingFilter(AUTHENTICATION_URL), UsernamePasswordAuthenticationFilter.class) |
| | | //.addFilterBefore(buildJwtTokenAuthenticationProcessingFilter(permitAllEndpointList, API_ROOT_URL), UsernamePasswordAuthenticationFilter.class); |
| | | } |
| | | } |