Skip to content

Commit 9601e7d

Browse files
committed
update warning syntax
1 parent b7c966a commit 9601e7d

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

docs/user-guide.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ that supports OpenID Connect (OIDC).
2929
Obtaining credentials
3030
---------------------
3131

32-
.. warning:::Important: If you accept a credential configuration (credential JSON/File/Stream)
33-
from an external source for authentication to Google Cloud Platform, you must
34-
validate it before providing it to any Google API or client library. Providing an
35-
unvalidated credential configuration to Google APIs or libraries can compromise
36-
the security of your systems and data. For more information, refer to
37-
`Validate credential configurations from external sources`_.
32+
.. warning::
33+
Important: If you accept a credential configuration (credential JSON/File/Stream)
34+
from an external source for authentication to Google Cloud Platform, you must
35+
validate it before providing it to any Google API or client library. Providing an
36+
unvalidated credential configuration to Google APIs or libraries can compromise
37+
the security of your systems and data. For more information, refer to
38+
`Validate credential configurations from external sources`_.
3839

3940
.. _Validate credential configurations from external sources:
4041
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials

google/auth/_default.py

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,16 @@ def load_credentials_from_file(
8585
user credentials, external account credentials, or impersonated service
8686
account credentials.
8787
88-
.. warning:::Important: If you accept a credential configuration (credential JSON/File/Stream)
89-
from an external source for authentication to Google Cloud Platform, you must
90-
validate it before providing it to any Google API or client library. Providing an
91-
unvalidated credential configuration to Google APIs or libraries can compromise
92-
the security of your systems and data. For more information, refer to
93-
`Validate credential configurations from external sources`_.
88+
.. warning::
89+
Important: If you accept a credential configuration (credential JSON/File/Stream)
90+
from an external source for authentication to Google Cloud Platform, you must
91+
validate it before providing it to any Google API or client library. Providing an
92+
unvalidated credential configuration to Google APIs or libraries can compromise
93+
the security of your systems and data. For more information, refer to
94+
`Validate credential configurations from external sources`_.
9495
95-
.. _Validate credential configurations from external sources:
96-
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
96+
.. _Validate credential configurations from external sources:
97+
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
9798
9899
Args:
99100
filename (str): The full path to the credentials file.
@@ -147,12 +148,13 @@ def load_credentials_from_dict(
147148
user credentials, external account credentials, or impersonated service
148149
account credentials.
149150
150-
.. warning:::Important: If you accept a credential configuration (credential JSON/File/Stream)
151-
from an external source for authentication to Google Cloud Platform, you must
152-
validate it before providing it to any Google API or client library. Providing an
153-
unvalidated credential configuration to Google APIs or libraries can compromise
154-
the security of your systems and data. For more information, refer to
155-
`Validate credential configurations from external sources`_.
151+
.. warning::
152+
Important: If you accept a credential configuration (credential JSON/File/Stream)
153+
from an external source for authentication to Google Cloud Platform, you must
154+
validate it before providing it to any Google API or client library. Providing an
155+
unvalidated credential configuration to Google APIs or libraries can compromise
156+
the security of your systems and data. For more information, refer to
157+
`Validate credential configurations from external sources`_.
156158
157159
.. _Validate credential configurations from external sources:
158160
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials

0 commit comments

Comments
 (0)