Skip to content

Commit bc14077

Browse files
Merge pull request #2990 from auslin-aot/bugfix/fwf-5411-block-default-camunda-apis
FWF-5411: [Bugfix] Block default camunda APIs
2 parents 8b9737d + b1f839a commit bc14077

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

forms-flow-bpm/forms-flow-bpm-camunda/src/main/java/org/camunda/bpm/extension/keycloak/sso/OAuth2LoginSecurityConfig.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ public SecurityFilterChain httpSecurityFilterChain(HttpSecurity http, JwtDecoder
8888
return http
8989
.csrf(AbstractHttpConfigurer::disable)
9090
.securityMatcher(AntPathRequestMatcher.antMatcher("/engine-rest-ext/**"))
91-
.authorizeHttpRequests(auth -> auth
91+
.authorizeHttpRequests(auth -> auth
9292
.requestMatchers(
93-
antMatcher(HttpMethod.OPTIONS,"/engine-rest/**"),
94-
antMatcher(HttpMethod.OPTIONS,"/engine-rest-ext/**"),
93+
antMatcher(HttpMethod.OPTIONS,"/engine-rest-ext/v1/**"),
9594
antMatcher(HttpMethod.OPTIONS, "/forms-flow-bpm-socket/**"),
9695
antMatcher(HttpMethod.OPTIONS, "/engine-rest/**"),
97-
antMatcher("/engine-rest-ext/**"))
96+
antMatcher("/engine-rest-ext/v1/**"))
9897
.permitAll()
98+
.requestMatchers(antMatcher("/engine-rest-ext/**")).denyAll()
9999
.anyRequest().authenticated())
100100
.oauth2ResourceServer(oauth2ResourceServer -> oauth2ResourceServer
101101
.jwt(jwt -> jwt

0 commit comments

Comments
 (0)