Skip to content

Commit 697e578

Browse files
author
Omur
committed
openapi support
1 parent 655e217 commit 697e578

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

jdk_21_maven/cs/rest-gui/webgoat/pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@
109109

110110
<dependencyManagement>
111111
<dependencies>
112-
113-
114112
<dependency>
115113
<groupId>org.apache.commons</groupId>
116114
<artifactId>commons-exec</artifactId>
@@ -221,6 +219,13 @@
221219
</dependencies>
222220
</dependencyManagement>
223221
<dependencies>
222+
<!-- MODIFIED-->
223+
<dependency>
224+
<groupId>org.springdoc</groupId>
225+
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
226+
<version>2.6.0</version>
227+
</dependency>
228+
<!-- MODIFIED-->
224229
<dependency>
225230
<groupId>org.apache.commons</groupId>
226231
<artifactId>commons-exec</artifactId>

jdk_21_maven/cs/rest-gui/webgoat/src/main/java/org/owasp/webgoat/container/WebSecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
6666
"/plugins/**",
6767
"/registration",
6868
"/register.mvc",
69-
"/actuator/**")
69+
"/actuator/**",
70+
"/swagger-ui.html", "/swagger-ui/**", "/v3/api-docs/**")
7071
.permitAll()
7172
.anyRequest()
7273
.authenticated())

0 commit comments

Comments
 (0)