From 6b8d2291be2cdbb10c3aabb6f80706a9b8672927 Mon Sep 17 00:00:00 2001 From: TayGov Date: Tue, 26 Sep 2023 09:39:32 -0700 Subject: [PATCH] Add ip restricted endpoint to allow --- .../ca/bc/gov/open/jag/aireviewerapi/config/SecurityConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/ai-reviewer-api/src/main/java/ca/bc/gov/open/jag/aireviewerapi/config/SecurityConfig.java b/src/backend/ai-reviewer-api/src/main/java/ca/bc/gov/open/jag/aireviewerapi/config/SecurityConfig.java index 6ac9d859..93508361 100644 --- a/src/backend/ai-reviewer-api/src/main/java/ca/bc/gov/open/jag/aireviewerapi/config/SecurityConfig.java +++ b/src/backend/ai-reviewer-api/src/main/java/ca/bc/gov/open/jag/aireviewerapi/config/SecurityConfig.java @@ -35,6 +35,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.authorizeHttpRequests(requests -> requests .requestMatchers("/actuator/**").permitAll() + .requestMatchers("/documents/webhookEvent").permitAll() .anyRequest().authenticated()); http.oauth2ResourceServer((oauth2) -> oauth2.jwt(jwt -> jwt.jwtAuthenticationConverter(keycloakJwtAuthConverter)));