YouTrack Cloud 2024.3 Help

Manage Authentication Tokens

YouTrack lets users create a range of authentication tokens that they use in turn to log in to YouTrack through external client applications. These authentication variables are shown on the Account Security tab for each user in their Hub account.

  • Permanent tokens let developers access and perform operations securely using REST API calls in their scripts and applications without having to implement more complicated OAuth 2.0 authentication flows.

  • Application passwords give an app or device permission to access YouTrack. Users who have enabled 2FA can generate these passwords to log into third-party applications that don't support the second factor for logging in.

  • Refresh tokens are automatically generated by YouTrack for connected services that support OAuth 2.0 authentication.

As an administrator, you can view and manage the collection of authentication tokens that are available to other users in YouTrack.

If you are not an administrator and are trying to add a token for yourself, see Manage Permanent Tokens.

Generate Permanent Tokens for Other Users

You can generate permanent tokens on behalf of other users. To prevent permission escalation, the permissions that are assigned to your account must be greater than or equal to the permissions that are available to the user for whom you want to create the token.

Generally, users can manage their own authentication tokens. The most common reason for generating an authentication token on behalf of another user is when the Hub account belongs to a bot. Developers often use dedicated bot accounts with limited permissions to automate basic tasks. By generating a permanent token on behalf of the bot account, the developer can use this token for authentication even when the bot account belongs to a group that requires 2FA for logins.

To generate a permanent token for another user account:

  1. From the Administration menu, select Access Management > Users.

  2. Select the user for whom you want to generate a permanent token.

  3. Switch to the Account Security tab.

  4. In the Tokens section of the page, click the New token button.

  5. In the New Permanent Token dialog, specify a name for the new token and the access scope for it. The scope for the token is a list of services that the user is allowed to access with this new token.

    New permanent token dialog.
  6. Click the Create token button.

    • A dialog window with the new token is displayed.

    Permanent token generated
  7. Copy the token and store it in a secure location. Use either of these two actions to copy the token:

    • Click the Copy token button.

    • Select the token with your pointer and use the standard keyboard shortcut for your operating system to copy the current selection to the clipboard.

  8. After you copy the token, close the dialog.

    • A new token is associated with the current account and is displayed in the list in the Account Security tab.

    • The login for your Hub account is shown in the Created by column for the new token.

    Permanent token list

Delete Authentication Tokens

Most authentication tokens don't have an expiration date. If you suspect that an authenticated service has been compromised, you can delete this authentication token in the Hub accounts of the users who work with this service.

To delete an authentication token:

  1. From the Administration menu, select Access Management > Users.

  2. Select the user for whom you want to delete an authentication token.

  3. Select the Account Security tab.

  4. In the list of tokens, select the token that you want to revoke.

  5. Click the Delete button.

    Delete permanent token
    • A confirmation dialog is displayed.

  6. Click the Delete button.

    • The selected permanent token is deleted and removed from the list.

Last modified: 12 June 2024