SYSTEM$ISSUE_WORKLOAD_IDENTITY_FEDERATION_TOKEN
functionnot supportedIntegrations, network & secretsReturns 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
| Name | Required | Description |
|---|---|---|
'workload_identity_secret' | required | Fully 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' | required | Specifies 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.