Особисті токени доступу

Personal access tokens are the alternative passwords you can use to authorize third-party applications and scripts into Crowdin Enterprise.

Treat personal access tokens like passwords and keep them secret. Use tokens as environmental variables instead of hardcoding them into your scripts.

Варіанти використання

A personal access token is required for authorization in Crowdin Enterprise in the following situations:

  • To use Crowdin CLI for managing and synchronizing localization resources in Crowdin Enterprise.
  • To automate localization workflow via Crowdin Enterprise API.
  • To use Android Studio plugin to pull source content stored in strings.xml or other .xml files you specify from your Android project.

Creating a Personal Access Token

When creating a new personal access token, you can select specific scopes and, if needed, limit the visibility of resources for the selected scopes using the Granular access option. For example, you can create a token that should interact only with a specific project or group and have no access to others. As a result, only the selected items will be gained when retrieving a list of all projects or groups.

Якщо ресурс не було вибрано під час створення особистого токена доступу, але ви все ще намагаєтеся отримати до нього доступ за його ID, буде отримано відповідь 404 Не Знайдено.

You can create as many personal access tokens as you need from your Crowdin Enterprise account.

Щоб створити новий особистий токен доступу, виконайте наступні дії:

  1. Open your Account Settings and go to the Access tokens tab.
  2. Натисніть Новий токен.
    New Token
  3. Specify the token name to be able to identify it later.
  4. Оберіть потрібний набір областей застосування.
  5. (Необов’язково) Щоб обмежити доступ до певних ресурсів, оберіть Деталізований доступ.
    Примітка: Якщо обрано Деталізований доступ, переконайтеся, що вибрані певні ресурси для обраних областей.
  6. Depending on the selected scopes, select Grant access to selected groups, Grant access to selected projects, Grant access to selected TMs, and Grant access to selected Glossaries.
  7. Click Select groups, Select projects, Select glossaries, Select TMs and respectively select the needed resources.
    Granular Access

    Note: When selecting a group, personal access token will automatically gain access to group's projects and resources.
  8. Натисніть Створити.

After generating a new token, be sure to record it right away. For security purposes, it will not be shown again.

Revoking a Personal Access Token

Вам може знадобитися відкликати особистий токен доступу, якщо ви більше його не використовуєте або підозрюєте, що він був скомпрометований.

Щоб відкликати особистий токен доступу, виконайте наступні дії:

  1. Open your Account Settings and go to the Access tokens tab.
  2. Знайдіть необхідний токен у списку та натисніть Вилучити поруч з ним, щоб видалити особистий токен доступу та скасувати його доступ.
    Revoke Token

Ця стаття була корисною?