-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raise ValueError if credentials are not from google-auth #2828
Conversation
@dhermes PTAL - core only changes right now. Once you're cool with those I'll start fixing the unit tests for all other packages. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me. What did you want me to see from this @jonparrott?
@@ -22,6 +23,13 @@ | |||
from google.cloud.credentials import get_credentials | |||
|
|||
|
|||
_GOOGLE_AUTH_CREDENTIALS_HELP = ( | |||
'This library only supports credentials from google-auth-library-python. ' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -83,6 +91,10 @@ class Client(_ClientFactoryMixin): | |||
_connection_class = Connection | |||
|
|||
def __init__(self, credentials=None, http=None): | |||
if (credentials is not None and | |||
not isinstance( | |||
credentials, google.auth.credentials.Credentials)): |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
2c3ecc1
to
b086249
Compare
We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm. |
…hon into google-auth-or-die
…hon into google-auth-or-die
…hon into google-auth-or-die
Seems CircleCI has given up on pull requests, I'd guess yesterday's outage b0rked something |
Resolves #2814