Skip to content

Commit

Permalink
update warning syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-sunder-s committed Jan 16, 2025
1 parent b7c966a commit 9601e7d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 20 deletions.
13 changes: 7 additions & 6 deletions docs/user-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ that supports OpenID Connect (OIDC).
Obtaining credentials
---------------------

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

.. _Validate credential configurations from external sources:
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
Expand Down
30 changes: 16 additions & 14 deletions google/auth/_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,16 @@ def load_credentials_from_file(
user credentials, external account credentials, or impersonated service
account credentials.
.. warning:::Important: If you accept a credential configuration (credential JSON/File/Stream)
from an external source for authentication to Google Cloud Platform, you must
validate it before providing it to any Google API or client library. Providing an
unvalidated credential configuration to Google APIs or libraries can compromise
the security of your systems and data. For more information, refer to
`Validate credential configurations from external sources`_.
.. warning::
Important: If you accept a credential configuration (credential JSON/File/Stream)
from an external source for authentication to Google Cloud Platform, you must
validate it before providing it to any Google API or client library. Providing an
unvalidated credential configuration to Google APIs or libraries can compromise
the security of your systems and data. For more information, refer to
`Validate credential configurations from external sources`_.
.. _Validate credential configurations from external sources:
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
.. _Validate credential configurations from external sources:
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
Args:
filename (str): The full path to the credentials file.
Expand Down Expand Up @@ -147,12 +148,13 @@ def load_credentials_from_dict(
user credentials, external account credentials, or impersonated service
account credentials.
.. warning:::Important: If you accept a credential configuration (credential JSON/File/Stream)
from an external source for authentication to Google Cloud Platform, you must
validate it before providing it to any Google API or client library. Providing an
unvalidated credential configuration to Google APIs or libraries can compromise
the security of your systems and data. For more information, refer to
`Validate credential configurations from external sources`_.
.. warning::
Important: If you accept a credential configuration (credential JSON/File/Stream)
from an external source for authentication to Google Cloud Platform, you must
validate it before providing it to any Google API or client library. Providing an
unvalidated credential configuration to Google APIs or libraries can compromise
the security of your systems and data. For more information, refer to
`Validate credential configurations from external sources`_.
.. _Validate credential configurations from external sources:
https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
Expand Down

0 comments on commit 9601e7d

Please sign in to comment.