private AccessTokenData GetToken(HttpRequestMessage request)
        {
            var authHeader = request?.Headers?.Authorization;

            if (authHeader?.Scheme != "Bearer")
            {
                return(null);
            }

            var token = _tokenProvider.DecodeToken(authHeader?.Parameter);

            if (token.ExpireDate < DateTime.Now)
            {
                return(null);
            }

            return(token);
        }