This article explains how to enable two factor authentication in Talend by using personal access tokens. Personal access tokens function is similar to session tokens and can be used for authentication.
For more information on personal access tokens, see the GitLab documentation page.
The article covers:
Using personal access tokens in Talend Administrator Center (TAC)
Using personal access tokens in Talend Management Console
The section is explained using GitLab, but the process is similar for GitHub, Gitblit, or other version control system tools.
Log in to your GitLab account and navigate to User Settings > Account > and Enable Two-Factor Authentication.
Name the personal access token.
Select an expiry date.
For Scopes select api (select the scope as needed by the project).
Click Create personal access token.
Copy, save, and secure the personal access token as it is not displayed again. Once you navigate away from this page, you no longer have access to the token, and the only way to retrieve it is to revoke the token and create another one.
Once created, the personal access token is displayed in the Active Personal Access Tokens area, along with details like the created date, the expiry date, and an option button to Revoke.
In TAC, create a new project, provide your Git login and use the personal access token you created earlier in place of the password.
Check the connection.
Save the project and give appropriate access to the user.
Login to Studio, if prompted, provide your Git username and use the personal access token you created earlier as the password. Click OK.
Login to Studio.
Login to Talend Cloud and create a new project.
When prompted for credentials, enter your Git username and use the personal access token you created earlier as the password. Select Store in Secure Store, to avoid multiple prompts for credentials. Click OK.
Login to Studio.