commit | faeb1b613854c4536531d9b34081a75103efbb23 | [log] [tgz] |
---|---|---|
author | Gustaf Lundh <gustaflh@axis.com> | Wed Nov 08 20:44:48 2017 +0100 |
committer | Gustaf Lundh <gustaflh@axis.com> | Wed Nov 08 20:48:50 2017 +0100 |
tree | 8705c1ac092df788dcccaf61be6c508c2c6ea8a5 | |
parent | c198a8e6dcfa1f25ac8bb7b404b3e71ebc74a577 [diff] |
Allow ssh_info endpoint without enforcing login Change-Id: I61abc68904fe98c1425cd5c9455693df5c196dd0
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 ec70e99..51779e2 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java +++ b/src/main/java/com/googlesource/gerrit/plugins/loginredirect/LoginRedirectFilter.java
@@ -44,6 +44,7 @@ path.startsWith("/a/") || path.startsWith("/Documentation/") || path.startsWith("/static/") || + path.equals("/ssh_info") || sessionProvider.get().isSignedIn()) { chain.doFilter(request, response); } else {