File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
opengrok-web/src/main/java/org/opengrok/web/api/v1/filter Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -101,9 +101,8 @@ public void filter(final ContainerRequestContext context) {
101
101
String path = context .getUriInfo ().getPath ();
102
102
103
103
if (request .isSecure ()) {
104
- String authHeaderValue ;
105
- if ((authHeaderValue = request .getHeader (HttpHeaders .AUTHORIZATION )) != null &&
106
- authHeaderValue .startsWith (BEARER )) {
104
+ String authHeaderValue = request .getHeader (HttpHeaders .AUTHORIZATION );
105
+ if (authHeaderValue != null && authHeaderValue .startsWith (BEARER )) {
107
106
String tokenValue = authHeaderValue .substring (BEARER .length ());
108
107
if (RuntimeEnvironment .getInstance ().getAuthenticationTokens ().contains (tokenValue )) {
109
108
logger .log (Level .FINEST , "allowing request to {0} based on authentication header token" , path );
You can’t perform that action at this time.
0 commit comments