Skip to content

Commit

Permalink
Merge pull request #351 from bcgov/feature/redis-update
Browse files Browse the repository at this point in the history
Add actuator to exclusion
  • Loading branch information
TayGov authored Sep 25, 2023
2 parents e7e9aa3 + 68e109f commit 95d67cf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

http.csrf(httpSecurityCsrfConfigurer -> httpSecurityCsrfConfigurer.disable());

http.authorizeHttpRequests(requests -> requests.anyRequest().authenticated());
http.authorizeHttpRequests(requests -> requests
.requestMatchers("/actuator/**").permitAll()
.anyRequest().authenticated());

http.oauth2ResourceServer((oauth2) -> oauth2.jwt(jwt -> jwt.jwtAuthenticationConverter(keycloakJwtAuthConverter)));

Expand Down

0 comments on commit 95d67cf

Please sign in to comment.