Skip to content
Snippets Groups Projects
Commit 84924c05 authored by William Enright's avatar William Enright Committed by Larbi Gharib
Browse files

Fixed OCSP endpoint being blocked by api filter

Change-Id: Ib6b2d258777bc5b205b5199c136f003811213a25
parent 2ea96130
No related branches found
No related tags found
No related merge requests found
......@@ -56,9 +56,12 @@ public class ApiFilter implements Filter {
} else {
boolean authsuccess = false;
boolean isLogin = false;
boolean isOCSPCheck = false;
if (request.getServletPath().contains("login")) isLogin = true;
else if (request.getServletPath().contains("ocsp")) isOCSPCheck = true;
else authsuccess = doAuthCheck(request);
if (authsuccess || isLogin) {
if (authsuccess || isLogin || isOCSPCheck) {
filterChain.doFilter(servletRequest, servletResponse);
} else {
TomcatCustomErrorHandler.sendCustomError(response,401,"You are not authenticated!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment