Skip to content

Commit b90abec

Browse files
author
Karyamsetty Helen Grace
committed
Merge branch 'develop' of https://github.com/helenKaryamsetty/FHIR-API into develop
2 parents 3e2c7b2 + 38cbe6b commit b90abec

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

src/main/java/com/wipro/fhir/utils/JwtUserIdValidationFilter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ 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")
5860
|| path.startsWith(contextPath + "/public")) {
5961
logger.info("Skipping filter for path: " + path);
6062
filterChain.doFilter(servletRequest, servletResponse);

src/main/java/com/wipro/fhir/utils/http/HTTPRequestInterceptor.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,19 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
6969

7070
// case "patient":
7171
case "swagger-ui.html":
72+
case "index.html":
73+
case "index.css":
74+
case "swagger-initializer.js":
75+
case "swagger-config":
76+
case "swagger-ui-bundle.js":
77+
case "swagger-ui.css":
7278
case "ui":
79+
case "swagger-ui-standalone-preset.js":
80+
case "favicon-32x32.png":
81+
case "favicon-16x16.png":
7382
case "swagger-resources":
74-
case "version":
7583
case "api-docs":
84+
case "version":
7685

7786
break;
7887
case "error":

0 commit comments

Comments
 (0)