@@ -216,6 +216,18 @@ def _create_composite_credentials(
216216 credentials_file (str): A file with credentials that can be loaded with
217217 :func:`google.auth.load_credentials_from_file`. This argument is
218218 mutually exclusive with credentials.
219+
220+ .. warning::
221+ Important: If you accept a credential configuration (credential JSON/File/Stream)
222+ from an external source for authentication to Google Cloud Platform, you must
223+ validate it before providing it to any Google API or client library. Providing an
224+ unvalidated credential configuration to Google APIs or libraries can compromise
225+ the security of your systems and data. For more information, refer to
226+ `Validate credential configurations from external sources`_.
227+
228+ .. _Validate credential configurations from external sources:
229+
230+ https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
219231 default_scopes (Sequence[str]): A optional list of scopes needed for this
220232 service. These are only used when credentials are not specified and
221233 are passed to :func:`google.auth.default`.
@@ -316,6 +328,18 @@ def create_channel(
316328 credentials_file (str): A file with credentials that can be loaded with
317329 :func:`google.auth.load_credentials_from_file`. This argument is
318330 mutually exclusive with credentials.
331+
332+ .. warning::
333+ Important: If you accept a credential configuration (credential JSON/File/Stream)
334+ from an external source for authentication to Google Cloud Platform, you must
335+ validate it before providing it to any Google API or client library. Providing an
336+ unvalidated credential configuration to Google APIs or libraries can compromise
337+ the security of your systems and data. For more information, refer to
338+ `Validate credential configurations from external sources`_.
339+
340+ .. _Validate credential configurations from external sources:
341+
342+ https://cloud.google.com/docs/authentication/external/externally-sourced-credentials
319343 quota_project_id (str): An optional project to use for billing and quota.
320344 default_scopes (Sequence[str]): Default scopes passed by a Google client
321345 library. Use 'scopes' for user-defined scopes.
0 commit comments