Skip to content

Commit 5811f2d

Browse files
committed
docs: swagger security path open
1 parent 0bc05bc commit 5811f2d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

noweekend-core/core-api/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ dependencies {
1515

1616
testImplementation(project(":noweekend-tests:api-docs"))
1717

18-
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0") {
18+
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0") {
1919
exclude(group = "io.swagger.core.v3", module = "swagger-annotations")
2020
}
21-
implementation("io.swagger.core.v3:swagger-annotations:2.2.15")
2221
}
2322

2423
tasks.named<BootJar>("bootJar") {

noweekend-core/core-api/src/main/kotlin/noweekend/core/api/config/SecurityConfig.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,8 @@ class SecurityConfig {
2626
fun permitDenyPathsOnDevelopment() = mapOf(
2727
"permit" to arrayOf(
2828
"/health",
29-
"/api-docs/**",
3029
"/swagger-ui/**",
31-
"/favicon.ico",
30+
"/v3/api-docs/**",
3231
),
3332
"deny" to arrayOf(),
3433
)
@@ -38,12 +37,13 @@ class SecurityConfig {
3837
fun permitDenyPathsOnProduction() = mapOf(
3938
"permit" to arrayOf(
4039
"/health",
41-
),
42-
"deny" to arrayOf(
43-
"/api-docs/**",
4440
"/swagger-ui/**",
45-
"/favicon.ico",
41+
"/v3/api-docs/**",
4642
),
43+
// "deny" to arrayOf(
44+
// "/api-docs/**",
45+
// "/swagger-ui/**",
46+
// ),
4747
)
4848

4949
@Bean

0 commit comments

Comments
 (0)