Skip to content
This repository was archived by the owner on Nov 29, 2021. It is now read-only.

Commit 9f54bf8

Browse files
committed
Updated anonymous paths to enable Swagger UI. lhotse#30 will take on securing Swagger UI properly.
1 parent 723e7d0 commit 9f54bf8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/engineering/everest/starterkit/security/config/ResourceServerConfig.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
3232
private static final String SPRING_ACTUATOR_HEALTH_API = "/actuator/health/**";
3333
private static final String GUEST_API = "/api/guest";
3434
private static final String SWAGGER_API_DOCUMENTATION = "/api/doc/**";
35+
private static final String SWAGGER_UI = "/swagger-ui/**";
36+
private static final String SWAGGER_RESOURCES = "/swagger-resources/**";
3537

3638
private static final String[] ADMIN_USERS_PATHS = {
3739
ADMIN_API,
@@ -48,7 +50,9 @@ public class ResourceServerConfig extends ResourceServerConfigurerAdapter {
4850
VERSION_API,
4951
SPRING_ACTUATOR_HEALTH_API,
5052
GUEST_API,
51-
SWAGGER_API_DOCUMENTATION
53+
SWAGGER_API_DOCUMENTATION,
54+
SWAGGER_UI,
55+
SWAGGER_RESOURCES
5256
};
5357

5458
private final JwtAccessTokenConverter jwtAccessTokenConverter;

0 commit comments

Comments
 (0)