'A thread local Credentials object.
Returns:
A client.Credentials object, or None if credentials hasn\'t been set
in this thread yet, which may happen when calling has_credentials
inside oauth_aware.'

def get_credentials(self):

    return getattr(self._tls, 'credentials', None)
