| Index: client/third_party/google/auth/exceptions.py
|
| diff --git a/client/third_party/oauth2client/__init__.py b/client/third_party/google/auth/exceptions.py
|
| similarity index 51%
|
| copy from client/third_party/oauth2client/__init__.py
|
| copy to client/third_party/google/auth/exceptions.py
|
| index f7c36c1bff2e62aaa1a7ba247131dd07e1f81f3f..2be9fd6df4037a46b897dead1403808847e89e07 100644
|
| --- a/client/third_party/oauth2client/__init__.py
|
| +++ b/client/third_party/google/auth/exceptions.py
|
| @@ -1,4 +1,4 @@
|
| -# Copyright 2015 Google Inc. All rights reserved.
|
| +# Copyright 2016 Google Inc.
|
| #
|
| # Licensed under the Apache License, Version 2.0 (the "License");
|
| # you may not use this file except in compliance with the License.
|
| @@ -12,12 +12,21 @@
|
| # See the License for the specific language governing permissions and
|
| # limitations under the License.
|
|
|
| -"""Client library for using OAuth2, especially with Google APIs."""
|
| +"""Exceptions used in the google.auth package."""
|
|
|
| -__version__ = '1.5.2'
|
|
|
| -GOOGLE_AUTH_URI = 'https://accounts.google.com/o/oauth2/auth'
|
| -GOOGLE_DEVICE_URI = 'https://accounts.google.com/o/oauth2/device/code'
|
| -GOOGLE_REVOKE_URI = 'https://accounts.google.com/o/oauth2/revoke'
|
| -GOOGLE_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token'
|
| -GOOGLE_TOKEN_INFO_URI = 'https://www.googleapis.com/oauth2/v2/tokeninfo'
|
| +class GoogleAuthError(Exception):
|
| + """Base class for all google.auth errors."""
|
| +
|
| +
|
| +class TransportError(GoogleAuthError):
|
| + """Used to indicate an error occurred during an HTTP request."""
|
| +
|
| +
|
| +class RefreshError(GoogleAuthError):
|
| + """Used to indicate that an refreshing the credentials' access token
|
| + failed."""
|
| +
|
| +
|
| +class DefaultCredentialsError(GoogleAuthError):
|
| + """Used to indicate that acquiring default credentials failed."""
|
|
|