Skip to content

Commit 3fb2a38

Browse files
author
Jon Wayne Parrott
authored
Don't treat httplib2.Credentials as oauth credentials (googleapis#425)
1 parent 67b5d06 commit 3fb2a38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

googleapiclient/_auth.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def get_credentials_from_http(http):
126126
return None
127127
elif hasattr(http.request, 'credentials'):
128128
return http.request.credentials
129-
elif hasattr(http, 'credentials'):
129+
elif (hasattr(http, 'credentials')
130+
and not isinstance(http.credentials, httplib2.Credentials)):
130131
return http.credentials
131132
else:
132133
return None

0 commit comments

Comments
 (0)