@@ -85,6 +85,16 @@ def load_credentials_from_file(
8585 user credentials, external account credentials, or impersonated service
8686 account credentials.
8787
88+ 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`_
94+
95+ .. _Validate credential configurations from external sources: https://\
96+ cloud.google.com/docs/authentication/external/externally-sourced-credentials
97+
8898 Args:
8999 filename (str): The full path to the credentials file.
90100 scopes (Optional[Sequence[str]]): The list of scopes for the credentials. If
@@ -137,6 +147,16 @@ def load_credentials_from_dict(
137147 user credentials, external account credentials, or impersonated service
138148 account credentials.
139149
150+ 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`_
156+
157+ .. _Validate credential configurations from external sources: https://\
158+ cloud.google.com/docs/authentication/external/externally-sourced-credentials
159+
140160 Args:
141161 info (Dict[str, Any]): A dict object containing the credentials
142162 scopes (Optional[Sequence[str]]): The list of scopes for the credentials. If
@@ -593,6 +613,15 @@ def default(scopes=None, request=None, quota_project_id=None, default_scopes=Non
593613 5. If no credentials are found,
594614 :class:`~google.auth.exceptions.DefaultCredentialsError` will be raised.
595615
616+ Important: If you accept a credential configuration (credential JSON/File/Stream)
617+ from an external source for authentication to Google Cloud Platform, you must
618+ validate it before providing it to any Google API or client library. Providing an
619+ unvalidated credential configuration to Google APIs or libraries can compromise
620+ the security of your systems and data. For more information, refer to
621+ `Validate credential configurations from external sources`_
622+
623+ .. _Validate credential configurations from external sources: https://\
624+ cloud.google.com/docs/authentication/external/externally-sourced-credentials
596625 .. _Application Default Credentials: https://developers.google.com\
597626 /identity/protocols/application-default-credentials
598627 .. _Google Cloud SDK: https://cloud.google.com/sdk
0 commit comments