diff --git a/core/google/cloud/credentials.py b/core/google/cloud/credentials.py index 52cba9b22fcc..6a1bf512f7a9 100644 --- a/core/google/cloud/credentials.py +++ b/core/google/cloud/credentials.py @@ -61,7 +61,8 @@ def _get_signed_query_params(credentials, expiration, string_to_sign): """ if not isinstance(credentials, google.auth.credentials.Signing): auth_uri = ('http://google-cloud-python.readthedocs.io/en/latest/' - 'google-cloud-auth.html#setting-up-a-service-account') + 'core/auth.html?highlight=authentication#setting-up-' + 'a-service-account') raise AttributeError('you need a private key to sign credentials.' 'the credentials you are currently using %s ' 'just contains a token. see %s for more ' diff --git a/storage/google/cloud/storage/bucket.py b/storage/google/cloud/storage/bucket.py index 865a23840af4..895a6e38473f 100644 --- a/storage/google/cloud/storage/bucket.py +++ b/storage/google/cloud/storage/bucket.py @@ -1016,7 +1016,8 @@ def generate_upload_policy( if not isinstance(credentials, google.auth.credentials.Signing): auth_uri = ('http://google-cloud-python.readthedocs.io/en/latest/' - 'google-cloud-auth.html#setting-up-a-service-account') + 'core/auth.html?highlight=authentication#setting-up-' + 'a-service-account') raise AttributeError( 'you need a private key to sign credentials.' 'the credentials you are currently using %s '