commit | 0f50cb7918e68de235d3f4ebcba3723f7733f97d | [log] [tgz] |
---|---|---|
author | Rikard Almgren <rikardal@axis.com> | Wed Aug 30 14:19:32 2023 +0200 |
committer | Rikard Almgren <rikardal@axis.com> | Wed Aug 30 14:24:55 2023 +0200 |
tree | 8cf8ea07c5dfb7d097c073c3e5cf786efd3de6f1 | |
parent | 43c8a4ab0383c124c1a786b48d42738cb15c7405 [diff] |
Add exception for healthcheck plugin Add an exception so that the healthcheck plugin can bypass login-redirect's login requirement. The healthcheck endpoint is commonly used without authentication. Change-Id: I0d8ab39d0bce2525cb664975ed8d806bbe0411fb
diff --git a/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java b/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java index ae056b0..39930cf 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java +++ b/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java
@@ -41,6 +41,7 @@ path = path.substring(httpReq.getContextPath().length()); } if (path.startsWith("/a/") + || path.equals("/config/server/healthcheck~status") || path.startsWith("/Documentation/") || path.equals("/favicon.ico") || path.equals("/login")