Skip to content

Commit

Permalink
Merge pull request #79 from catenax-ng/fix/Gate_fails_with_forbiden
Browse files Browse the repository at this point in the history
Fix(gate/pool): Fixed error on gate and pool connection
  • Loading branch information
nicoprow authored Mar 17, 2023
2 parents 7c63715 + 6ec6ac4 commit 460afaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class BpdmSecurityConfigurerAdapterImpl(
.requestMatchers(AntPathRequestMatcher("/docs/api-docs/**")).permitAll()
.requestMatchers(AntPathRequestMatcher("/ui/swagger-ui/**")).permitAll()
.requestMatchers(AntPathRequestMatcher("/actuator/health/**")).permitAll()
.requestMatchers(AntPathRequestMatcher("/error")).permitAll()
.requestMatchers(AntPathRequestMatcher("/api/**")).authenticated()
.and().oauth2ResourceServer()
.jwt()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class BpdmSecurityConfigurerAdapterImpl(
.requestMatchers(AntPathRequestMatcher(ALL_API_PATHS, HttpMethod.GET.name())).authenticated()
.requestMatchers(AntPathRequestMatcher("/api/catena/**/search", HttpMethod.POST.name())).authenticated()
.requestMatchers(AntPathRequestMatcher("/api/catena/**/filter", HttpMethod.POST.name())).authenticated()
.requestMatchers(AntPathRequestMatcher("/error")).permitAll()
.requestMatchers(AntPathRequestMatcher(ALL_API_PATHS)).hasRole("add_company_data")
.and().oauth2ResourceServer()
.jwt()
Expand Down

0 comments on commit 460afaf

Please sign in to comment.