From 19353d745c3efcbfa9b1f1b020874642a0111a4c Mon Sep 17 00:00:00 2001 From: Sean Sylver Date: Mon, 30 Sep 2024 10:49:12 -0700 Subject: [PATCH] Permit all requests temporarily --- .../ca/bc/gov/nrs/wfprev/SecurityConfig.java | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/SecurityConfig.java b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/SecurityConfig.java index 4cd89fec7..98333ed9f 100644 --- a/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/SecurityConfig.java +++ b/server/wfprev-api/src/main/java/ca/bc/gov/nrs/wfprev/SecurityConfig.java @@ -83,16 +83,18 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti http.csrf().disable(); - http - .oauth2ResourceServer(oauth2 -> oauth2 - .authenticationManagerResolver(authenticationManagerResolver()) - ) - .httpBasic().and() - .authorizeHttpRequests((authorize) -> authorize - .anyRequest().authenticated() - ) - .exceptionHandling() - .authenticationEntryPoint(authenticationEntryPoint()); + http.authorizeHttpRequests().anyRequest().permitAll(); + + // http + // .oauth2ResourceServer(oauth2 -> oauth2 + // .authenticationManagerResolver(authenticationManagerResolver()) + // ) + // .httpBasic().and() + // .authorizeHttpRequests((authorize) -> authorize + // .anyRequest().authenticated() + // ) + // .exceptionHandling() + // .authenticationEntryPoint(authenticationEntryPoint()); return http.build(); }