@@ -216,6 +216,18 @@ def _create_composite_credentials(
216
216
credentials_file (str): A file with credentials that can be loaded with
217
217
:func:`google.auth.load_credentials_from_file`. This argument is
218
218
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
219
231
default_scopes (Sequence[str]): A optional list of scopes needed for this
220
232
service. These are only used when credentials are not specified and
221
233
are passed to :func:`google.auth.default`.
@@ -316,6 +328,18 @@ def create_channel(
316
328
credentials_file (str): A file with credentials that can be loaded with
317
329
:func:`google.auth.load_credentials_from_file`. This argument is
318
330
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
319
343
quota_project_id (str): An optional project to use for billing and quota.
320
344
default_scopes (Sequence[str]): Default scopes passed by a Google client
321
345
library. Use 'scopes' for user-defined scopes.
0 commit comments