diff --git a/googleapiclient/_auth.py b/googleapiclient/_auth.py index 05a1d38b440..92f2796f45b 100644 --- a/googleapiclient/_auth.py +++ b/googleapiclient/_auth.py @@ -126,7 +126,8 @@ def get_credentials_from_http(http): return None elif hasattr(http.request, 'credentials'): return http.request.credentials - elif hasattr(http, 'credentials'): + elif (hasattr(http, 'credentials') + and not isinstance(http.credentials, httplib2.Credentials)): return http.credentials else: return None