Let comments content api pass

pull/146/head
johnniang 2019-05-07 01:14:46 +08:00
parent 0a3717e394
commit ff4876bef1
1 changed files with 4 additions and 0 deletions

View File

@ -112,6 +112,10 @@ public class HaloConfiguration {
ObjectMapper objectMapper,
OptionService optionService) {
ApiAuthenticationFilter apiFilter = new ApiAuthenticationFilter(haloProperties, optionService);
apiFilter.addExcludeUrlPatterns(
"/api/content/*/comments",
"/api/content/*/comments/*"
);
DefaultAuthenticationFailureHandler failureHandler = new DefaultAuthenticationFailureHandler();
failureHandler.setProductionEnv(haloProperties.isProductionEnv());