Skip to content
Snippets Groups Projects
Verified Commit e8094771 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

FIX: Authorization header

parent bc4c9a6f
No related branches found
No related tags found
1 merge request!8F basic auth scheme
Pipeline #56901 passed
......@@ -14,7 +14,7 @@ public class AuthenticationInterceptor implements HandlerInterceptor {
@Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)
throws Exception {
String header = request.getHeader("authentication");
String header = request.getHeader("authorization");
if (header != null && header.startsWith("Bearer ")) {
authenticator.setAuthenticator(new AuthenticationToken(header.substring(7)));
} else if (header != null && header.startsWith("Basic ")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment