'Identify a user with the Hub
Args:
url (str): The API URL to check the Hub for authorization
(e.g. http://127.0.0.1:8081/hub/api/authorizations/token/abc-def)
cache_key (str): The key for checking the cache
use_cache (bool): Specify use_cache=False to skip cached cookie values (default: True)
Returns:
user_model (dict): The user model, if a user is identified, None if authentication fails.
Raises an HTTPError if the request failed for a reason other than no such user.'

def _check_hub_authorization(self, url, cache_key=None, use_cache=True):

    if use_cache:
        if (cache_key is None):
            raise ValueError('cache_key    is    required    when    using    cache')
        cached = self.cache.get(cache_key)
        if (cached is not None):
            return cached
    data = self._api_request('GET', url, allow_404=True)
    if (data is None):
        app_log.warning('No    Hub    user    identified    for    request')
    else:
        app_log.debug('Received    request    from    Hub    user    %s', data)
    if use_cache:
        self.cache[cache_key] = data
    return data
