This article provides information on adding an authentication to an event or visitor function.
In this article:
Functions require authentication to access some service providers, such as Facebook or Google. You can add authentication to a function in the Advanced tab of the Tealium Functions code editor. When you add an authentication, an access token is returned, which the function then uses to make requests from the service. The token is typically a string of characters that is used to identify a user or an application. Tealium functions must provide an authentication token to make API calls to Facebook or Google. To get an authentication token, you need an account with the service provider.
The steps for adding an authentication vary depending on the authentication selected. The following sections provide instructions for adding each available authentication type.
You must log in to Facebook before adding a Facebook authentication. To add Facebook authentication, use the following steps:
To add Google authentication, use the following steps:
Before you add OAuth 2.0 authentication, open your OAuth API provider settings in a different browser tab or window and add a new application for your OAuth integration with Tealium Functions.
The steps for Establish Connection vary for each grant type. The following sections describe these steps for each grant type.
To establish a connection using the authorization code grant type, use the following steps:
To establish a connection using the client credential grant type, use the following steps:
To establish a connection using the user password grant type, use the following steps:
To add an API key authentication, use the following steps:
To add UID 2.0 authentication, use the following steps:
UID2.0_Tealium, which can now be used in your code.
Authentications that are assigned to a function or to a connector cannot be deleted. To delete an authentication, use the following steps: