String header = ((HttpServletRequest) request).getHeader("Authorization");
if (header != null && header.startsWith(BEARER)) {
// what follows the bearer designator should be the JWT token being used to request or as an access token
String wireToken = header.substring(BEARER.length());
JWTToken token = JWTToken.parseToken(wireToken);
// ensure that there is a valid jwt token available and that there isn't a misconfiguration of filters
if (token != null) {
authority.verifyToken(token);
}
else {