mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-01-26 01:09:10 +01:00
do not fail on wrong basic authorization header
This commit is contained in:
@@ -124,13 +124,10 @@ public class BasicAuthenticationFilter extends HttpFilter
|
||||
{
|
||||
user = securityContext.getUser();
|
||||
}
|
||||
else if (Util.isNotEmpty(authentication))
|
||||
else if (Util.isNotEmpty(authentication)
|
||||
&& authentication.toUpperCase().startsWith(
|
||||
AUTHORIZATION_BASIC_PREFIX))
|
||||
{
|
||||
if (!authentication.toUpperCase().startsWith(AUTHORIZATION_BASIC_PREFIX))
|
||||
{
|
||||
throw new ServletException("wrong basic header");
|
||||
}
|
||||
|
||||
user = authenticate(request, response, securityContext, authentication);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user