Дерево страниц

Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.
Комментарий: Published by Scroll Versions from space IDD and version 2.2
Sv translation
languageru

В разделе Настройки→ Настройки продуктов → Параметры авторизации вы можете добавлять параметры авторизации для подключения к файловым хранилищам. Добавленные параметры авторизации будут доступны для выбора при добавлении хостов с этим типом подключения.

Информация
titleПримечание:

В текущей версии добавление параметров авторизации поддерживается только для хранилища Яндекс Диск.

Яндекс Диск

Для подключения к хранилищу Яндекс Диск

Multiexcerpt include
MultiExcerptNameDD_Short_Name
PageWithExcerptExcerpt Source
использует REST API Диска.

Информация
titleПримечание:

Учитывайте особенности использования REST API Диска:

  • возможен доступ только к папкам пользователей, созданным внутри организации, в ее домене;
  • к папкам сторонних пользователей, добавленных в организацию, доступ отсутствует;
  • к папкам владельца организации доступ отсутствует.

Чтобы добавить параметры авторизации для подключения к хранилищу Яндекс Диск:

  1. Вверху справа нажмите Добавить.
  2. В открывшемся окне укажите Название подключения, которое будет отображаться в списке для выбора при добавлении хоста в задачу сканирования.
  3. В поле Идентификатор организации укажите ID организации. Для этого:
    1. В браузере перейдите в административную панель Яндекс 360.
    2. Авторизуйтесь от имени владельца организации.
    3. В левом нижнем углу будет указан ID организации. Используйте это значение для заполнения поля
  4. Создайте сервисные приложения в веб-интерфейсе Яндекс OAuth. Для создания сервисных приложений используйте инструкцию на официальном ресурсе Яндекс.

    Предупреждение
    titleВажно!

    Пройдя по инструкции, вы создадите два приложения:

    • Приложение для управления списком сервисных приложений – главное;
    • Сервисное приложение – 
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      использует его для сканирования.

    При создании сервисного приложения обязательно укажите следующие права:

    • cloud_api:disk.app_folder
    • cloud_api:disk.read
    • cloud_api:disk.info
    • directory:read_users

    Также обязательно укажите права в cURL-запросе при регистрации сервисного приложения.

    Раскрыть
    titleФормат cURL-запроса:
    Блок кода
    curl -i --location \
    --request POST 'https://api360.yandex.net/security/v1/org/<org_id>/service_applications' \
    --header 'Authorization: OAuth <owner_token_to_manage_service_app>’app>' \
    --header 'Content-Type: application/json' \
    --data-raw '{ \
      "applications": [ \
        { \
          "id": “<OAuth"<OAuth_service_app_client_id>”id>", \
          "scopes": [ \
            "cloud_api:disk.app_folder", \
            "cloud_api:disk.read", \
            "cloud_api:disk.write", \
            "cloud_api:disk.info" \
          ] \
        } \
      ] \
    }'

    где:

    • <org_id> — ID организации;

    • <owner_token_to_manage_service_app> — OAuth-токен;

    • <OAuth_service_app_client_id> — ClientID сервисного приложения.

  5. Чтобы заполнить поле OAuth-токен сервисного приложения:
    1. Авторизуйтесь в веб-интерфейсе Яндекс OAuth от имени владельца организации.

      Информация
      titleПримечание:

      Права доступа учетной записи, от имени которой получен OAuth-токен, определяют, какие общие диски организации будут доступны для сканирования

    2. Выберите ранее созданное сервисное приложение.
    3. Скопируйте его ClientID.
    4. Перейдите по ссылке вида:

      Блок кода
      languagetext
      https://oauth.yandex.ru/authorize?response_type=token&client_id=<идентификатор_приложения>

      В нашем примере:

      Блок кода
      languagetext
      https://oauth.yandex.ru/authorize?response_type=token&client_id=38a6d7f708e24af3b721995492f66946
    5. При необходимости авторизуйтесь от имени владельца организации или администратора.
      При успешном выполнении запроса вы будете перенаправлены на страницу с токеном.
    6. Скопируйте значение токена в поле OAuth-токен сервисного приложения окна добавления параметров авторизации.
  6. В поле Идентификатор сервисного приложения (ClientID) укажите ClientID сервисного приложения из веб-интерфейса Яндекс OAuth.
  7. В поле укажите сервисного приложения из веб-интерфейса Яндекс OAuth.
  8. Если вы хотите, чтобы
    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    подключался к хранилищу Яндекс Диск через прокси-сервер:
    1. Активируйте переключатель Использовать прокси-сервер.
    2. Выберите Протокол.
    3. Укажите Адрес прокси-сервера и номер Порта.
    4. Вы можете использовать Анонимное подключение, активировав переключатель, или указать Логин и Пароль.
  9. Перед сохранением вы можете Проверить соединение с хранилищем с помощью кнопки в правом нижнем углу диалогового окна.
  10. Чтобы завершить добавление параметров авторизации, нажмите Сохранить.

В результате будет добавлено подключение, которое вы сможете выбрать в поле Параметры авторизации при добавлении хоста с типом подключения Яндекс Диск (о добавлении хостов см.

Multiexcerpt include
MultiExcerptNameDD_Full_Name
PageWithExcerptExcerpt Source
. Руководство пользователя. Добавление и настройка хостов).

Sv translation
languageen

In the section Settings→ Products settings → Authorization parameters, youcanaddauthorizationparameterstoconnecttofilestorages. The addedparameters will beavailableforselectionwhenaddinghostswith the specified connectiontype.

Информация
titleNote:

In the currentversion, addingauthorizationparameters is available onlyfor the Yandex Diskstorage.

Yandex Disk

To connect to the Yandex Disk storage,

Multiexcerpt include
MultiExcerptNameDD_Short_Name
PageWithExcerptExcerpt Source
uses the Yandex Disk REST API.

Информация
titleNote:

Consider the following specifics of the Yandex Disk REST API:

  • You can onlyaccess user folderscreatedinside the organization,initsdomain.
  • There's no accesstofolders of third-party usersadded to theorganization.
  • There's noaccessto the folders of the organization owner.

Toaddauthorizationparametersforconnectingto the YandexDiskstorage:

  1. In the upper-right, click Add.
  2. In the window that opens, specify the Connection name that will be displayed in the selectionlistwhenadding a host to thescantask.
  3. In the field Organization ID,specify the required ID. To do this:
    1. In your browser, go to the Yandex 360 administrator panel.
    2. Log in as the organization owner.
    3. Find the organization ID in the bottom-left corner. Use this value to fill out the field.
  4. Create service applications in the Yandex OAuth web interface. To do this, follow the official instructions from Yandex.

    Предупреждение
    titleImportant!

    By following the instructions, you'll create two applications:

    • The main application that manages the list of serviceapplications.
    • The service application that
      Multiexcerpt include
      MultiExcerptNameDD_Short_Name
      PageWithExcerptExcerpt Source
      will use for scanning.

    When creating a service application, make sure to specify the following rights:

    • cloud_api:disk.app_folder
    • cloud_api:disk.read
    • cloud_api:disk.info
    • directory:read_users

    Also, you need to specify the rights in the cURL request when registering the service application.

    Раскрыть
    titlecURL request format:
    Блок кода
    curl -i --location \
    --request POST 'https://api360.yandex.net/security/v1/org/<org_id>/service_applications' \
    --header 'Authorization: OAuth <owner_token_to_manage_service_app>’app>' \
    --header 'Content-Type: application/json' \
    --data-raw '{ \
      "applications": [ \
        { \
          "id": “<OAuth"<OAuth_service_app_client_id>”id>", \
          "scopes": [ \
            "cloud_api:disk.app_folder", \
            "cloud_api:disk.read", \
            "cloud_api:disk.info", \
            "directory:read_users" \
          ] \
        } \
      ] \
    }'

    где:

    • <org_id> – organization ID;

    • <owner_token_to_manage_service_app> – OAuth token;

    • <OAuth_service_app_client_id> – service application ClientID.

  5. To fill out the field Service application OAuth token:
    1. Log in to the Yandex OAuth web interface as the organization owner.

      Информация
      titleNote:

      The accessrights of the accountonwhosebehalf the OAuthtoken was receiveddeterminewhichshareddisks of the organizationwill be availableforscanning.

    2. Select service application you've created before.
    3. Copy its ClientID.
    4. Follow the link that looks like this:

      Блок кода
      languagetext
      https://oauth.yandex.ru/authorize?response_type=token&client_id=<application_ID>

      In our example, it's:

      Блок кода
      languagetext
      https://oauth.yandex.ru/authorize?response_type=token&client_id=38a6d7f708e24af3b721995492f66946
    5. If needed, log in as the organization owner or administrator. Iftherequest is successful, you'll be redirected to thepagewith the token.
    6. In the authorization parameters window, copy the value from the field Service application OAuth token.
  6. In the field Service application ID (ClientID), specify the ClientID of the service application from the Yandex OAuth web interface.
  7. In the field specify the Client secret of the service application from the Yandex OAuth web interface.
  8. If you want
    Multiexcerpt include
    MultiExcerptNameDD_Short_Name
    PageWithExcerptExcerpt Source
    to connect to the Yandex Disk storage via a proxy server:
    1. Enable the Use a proxy server toggle.
    2. Select Protocol.
    3. Specify the proxy server address and the port number.
    4. You can use the Anonymous connection by enabling the toggle or specify the Login and Password.
  9. Before saving, you can test the connection with the storage by clicking the Test connection button in the bottom-right corner of the dialog box.
  10. To complete adding the authorization parameters, click Save.

As a result, the connection will be added. You can select it in the field Authorization parameters when adding a host with the Yandex Disk connection type. To learn more about adding hosts, see

Multiexcerpt include
MultiExcerptNameDD_Full_Name
PageWithExcerptExcerpt Source
. User Guide. Добавление и настройка хостов).