SYSTEM$ISSUE_WORKLOAD_IDENTITY_FEDERATION_TOKEN

functionnot supportedIntegrations, network & secrets

docs.snowflake.com ↗

System functions

Returns an ID token that a Snowflake workload can send to an external service for authentication purposes. For more information about using this function, see Workload identity federation for Snowflake workloads that access external services.

Syntax

SYSTEM$ISSUE_WORKLOAD_IDENTITY_FEDERATION_TOKEN(
  '<workload_identity_secret>',
  '<audience>' )

Parameters

NameRequiredDescription
'workload_identity_secret'requiredFully qualified name of the secret that was created for the Snowflake workload that is authenticating with workload identity federation. The type of the secret must be WORKLOAD_IDENTITY_FEDERATION.
'audience'requiredSpecifies the audience of the ID token in JSON format. The function uses this value to set the aud claim of the ID token. The audience is specified in the following format:Copy code { "aud": "<audience_identifier>" }

Returns

Returns an encoded ID token that conforms to the OIDC specification.