Skip to content

Commit

Permalink
fix of filter for http authentication modules
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Dec 22, 2021
1 parent 8c5d7fe commit 884f267
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ protected void doFilterInternal(HttpServletRequest request,
try {
String header = request.getHeader("Authorization");

if (header == null) {
chain.doFilter(request, response);
return;
}

int delim = header.indexOf(" ");

if (delim == -1) {
Expand All @@ -87,12 +92,10 @@ protected void doFilterInternal(HttpServletRequest request,
Authentication authResult = getAuthenticationManager()
.authenticate(authRequest);

AuthSequenceUtil.resolveProxyUserOidHeader(request);

onSuccessfulAuthentication(request, response, authResult);

LOGGER.debug("Authentication success: " + authResult);

AuthSequenceUtil.resolveProxyUserOidHeader(request);

getRememberMeServices().loginSuccess(request, response, authResult);

onSuccessfulAuthentication(request, response, authResult);
Expand Down

0 comments on commit 884f267

Please sign in to comment.