don't add header "current-subject: nobody" anymore
This commit is contained in:
parent
158e279aeb
commit
cdede45caa
@ -26,8 +26,6 @@ public class CasAuthenticationFilter extends OncePerRequestFilter {
|
|||||||
if (request.getHeader("Authorization") != null) {
|
if (request.getHeader("Authorization") != null) {
|
||||||
final var currentSubject = authenticator.authenticate(request);
|
final var currentSubject = authenticator.authenticate(request);
|
||||||
authenticatedRequest.addHeader("current-subject", currentSubject);
|
authenticatedRequest.addHeader("current-subject", currentSubject);
|
||||||
} else {
|
|
||||||
authenticatedRequest.addHeader("current-subject", "nobody");
|
|
||||||
}
|
}
|
||||||
filterChain.doFilter(authenticatedRequest, response);
|
filterChain.doFilter(authenticatedRequest, response);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user