Skip to content

Commit c3323d0

Browse files
Swagger changes (#69)
1 parent ef9c3bd commit c3323d0

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/environment/common_ci.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ jwt.secret=@env.JWT_SECRET_KEY@
1111

1212
#ELK logging file name
1313
logging.file.name=@env.INVENTORY_API_LOGGING_FILE_NAME@
14+
springdoc.api-docs.enabled=@env.SWAGGER_DOC_ENABLED@
15+
springdoc.swagger-ui.enabled=@env.SWAGGER_DOC_ENABLED@

src/main/java/com/iemr/inventory/utils/JwtUserIdValidationFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
5555
// Skip login and public endpoints
5656
if (path.equals(contextPath + "/user/userAuthenticate")
5757
|| path.equalsIgnoreCase(contextPath + "/user/logOutUserFromConcurrentSession")
58+
|| path.startsWith(contextPath + "/swagger-ui")
59+
|| path.startsWith(contextPath + "/v3/api-docs")
60+
|| path.startsWith(contextPath + "/user/refreshToken")
5861
|| path.startsWith(contextPath + "/public")) {
5962
logger.info("Skipping filter for path: " + path);
6063
filterChain.doFilter(servletRequest, servletResponse);

0 commit comments

Comments
 (0)