I guess your issue comes from the JWTAuthenticationFilter:
Your request.getInputStream() cannot be parsed into JSON format of AppUser.
How about
String username = obtainUsername(request);
String password = obtainPassword(request);
In the request, set the headers of username and password to your username / password.
Pass the username and password to your authenticationManager.authenticate() method.