Skip to content

Commit 0c60cbd

Browse files
committed
method to class
1 parent 45d61e2 commit 0c60cbd

File tree

5 files changed

+19
-13
lines changed

5 files changed

+19
-13
lines changed

google/auth/external_account.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@ class Credentials(
9191
credentials for Google access tokens.
9292
9393
**IMPORTANT**:
94-
This method does not validate the credential configuration. A security
94+
This class does not validate the credential configuration. A security
9595
risk occurs when a credential configuration configured with malicious urls
9696
is used.
9797
When the credential configuration is accepted from an
98-
untrusted source, you should validate it before using with this method.
99-
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details.
100-
"""
98+
untrusted source, you should validate it before using.
99+
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details."""
101100

102101
def __init__(
103102
self,

google/auth/external_account_authorized_user.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ class Credentials(
6262
uri, use `with_token_uri`.
6363
6464
**IMPORTANT**:
65-
This method does not validate the credential configuration. A security
65+
This class does not validate the credential configuration. A security
6666
risk occurs when a credential configuration configured with malicious urls
6767
is used.
6868
When the credential configuration is accepted from an
69-
untrusted source, you should validate it before using with this method.
70-
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details.
71-
"""
69+
untrusted source, you should validate it before using.
70+
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details."""
7271

7372
def __init__(
7473
self,

google/auth/identity_pool.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,15 @@ def _parse_token_data(token_content, format_type="text", subject_token_field_nam
253253

254254

255255
class Credentials(external_account.Credentials):
256-
"""External account credentials sourced from files and URLs."""
256+
"""External account credentials sourced from files and URLs.
257+
258+
**IMPORTANT**:
259+
This class does not validate the credential configuration. A security
260+
risk occurs when a credential configuration configured with malicious urls
261+
is used.
262+
When the credential configuration is accepted from an
263+
untrusted source, you should validate it before using.
264+
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details."""
257265

258266
def __init__(
259267
self,

google/auth/impersonated_credentials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ class Credentials(
186186
print(bucket.name)
187187
188188
**IMPORTANT**:
189-
This method does not validate the credential configuration. A security
189+
This class does not validate the credential configuration. A security
190190
risk occurs when a credential configuration configured with malicious urls
191191
is used.
192192
When the credential configuration is accepted from an
193-
untrusted source, you should validate it before using with this method.
193+
untrusted source, you should validate it before using.
194194
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details.
195195
"""
196196

google/auth/pluggable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class Credentials(external_account.Credentials):
6060
"""External account credentials sourced from executables.
6161
6262
**IMPORTANT**:
63-
This method does not validate the credential configuration. A security
63+
This class does not validate the credential configuration. A security
6464
risk occurs when a credential configuration configured with malicious urls
6565
is used.
6666
When the credential configuration is accepted from an
67-
untrusted source, you should validate it before using with this method.
67+
untrusted source, you should validate it before using.
6868
Refer https://cloud.google.com/docs/authentication/external/externally-sourced-credentials for more details."""
6969

7070
def __init__(

0 commit comments

Comments
 (0)