Updated Google/Google Cloud Storage instructions

This commit is contained in:
Svetlana Maleeva 2021-02-17 10:14:19 +03:00
parent 877b222082
commit 76c8a7388c
2 changed files with 24 additions and 14 deletions

View File

@ -264,7 +264,7 @@
</div>
<p class="serverversion_display">Use this instruction if you want to connect your Google Drive account with the Documents module, sign in to ONLYOFFICE via your Google account, and import new users from the contact list.</p>
<ol class="serverversion_display">
<li>Go to <a target="_blank" class="links" href="https://code.google.com/apis/console/?pli=1#access">Google APIs console</a>.</li>
<li>Go to <a target="_blank" class="links" href="https://console.cloud.google.com/cloud-resource-manager">Google Cloud Platform console</a>.</li>
<li>Sign in to your account.</li>
<li>Click the <b>Create project</b> button. Enter the <b>Project Name</b> in the corresponding field and click the <b>Create</b> button. Once the project is created, you'll see a notification in the upper right corner of the page. Click on the project name to open it.</li>
<li>Enable necessary APIs:
@ -275,7 +275,7 @@
<li>Return to the <b>Dashboard</b> page, click the <b>Enable APIs and services</b> button. In the <b>Social</b> section, enable the <b>Google People API</b> and <b>Contacts API</b> in the same way.</li>
</ul>
</li>
<li>Configure the consent screen:
<li>Configure the OAuth consent screen, add a scope and test users:
<ul>
<li>Click the navigation menu in the upper left corner and select the <b>APIs and services</b> -> <b>OAuth consent screen</b> section.</li>
<li>Choose the <b>User Type</b> and click <b>Create</b>.</li>
@ -284,7 +284,9 @@
<li>Specify an email in the <b>Developer contact information</b> section.</li>
<li>Click the <b>Save and continue</b> button.</li>
<li>Click the <b>Add or remove scopes</b> button. On a new screen that opens, go to the <b>Manually add scopes</b> section, specify <code>https://www.googleapis.com/auth/drive</code> in the entry field and click the <b>Add to table</b> button, then click <b>Update</b>.</li>
<li>Click <b>Save and continue</b>.</li>
<li>Click the <b>Save and continue</b> button.</li>
<li>In the <b>Test users</b> section, click the <b>Add users</b> button. Specify necessary Google accounts and click the <b>Add</b> button. </li>
<li>Click the <b>Save and continue</b> button.</li>
</ul>
</li>
<li>Get <code>Client ID</code> and <code>Client secret</code>:
@ -308,10 +310,13 @@
<li>Go to <a target="_blank" class="links" href="https://console.cloud.google.com">Google Cloud Platform console</a>.</li>
<li>Sign in to your account.</li>
<li>Click the navigation menu in the upper left corner and select the <b>IAM & admin</b> -> <b>Service accounts</b> section.</li>
<li>Click the <b>Create service account</b> button,</li>
<li>Specify the <b>Service account name</b> and click <b>Create</b>,</li>
<li>Select the <b>Owner</b> role and click <b>Continue</b>,</li>
<li>Click the <b>Create key</b> button, choose the <b>JSON</b> type and click <b>Create</b>,</li>
<li>Select an existing project or create a new one.</li>
<li>Click the <b>Create service account</b> button.</li>
<li>Specify the <b>Service account name</b> and click <b>Create</b>.</li>
<li>Select the <b>Owner</b> role and click <b>Continue</b>.</li>
<li>Optionally, grant access to this service account to users: specify necessary Google accounts and click <b>Done</b>.</li>
<li>On the <b>Service accounts</b> page, click the menu button in the <b>Actions</b> field and choose the <b>Create key</b> option.</li>
<li>In a new window that opens, choose the <b>JSON</b> type and click <b>Create</b>.</li>
<li>The .json file that contains the private key will be downloaded to your computer. To connect the GoogleCloud service, you will need to open this .json file with a text editor, copy its contents and paste into the <b>json</b> field on the portal.</li>
</ol>

View File

@ -230,7 +230,7 @@
<h3 id="Google" class="serverversion_display">Google <img alt="Значок Google" src="<%=VirtualPathUtility.ToAbsolute("~/images/help/tipstricks/google.png")%>" /></h3>
<p class="serverversion_display">Используйте эту инструкцию, если вы хотите подключить свой аккаунт Google Drive к модулю "Документы", входить на портал ONLYOFFICE через аккаунт Google и импортировать новых пользователей из списка контактов.</p>
<ol class="serverversion_display">
<li>Перейдите в <a target="_blank" class="links" href="https://code.google.com/apis/console/?pli=1#access">консоль API Google</a>.</li>
<li>Перейдите в <a target="_blank" class="links" href="https://console.cloud.google.com/cloud-resource-manager">консоль Google Cloud Platform</a>.</li>
<li>Войдите в свою учетную запись.</li>
<li>Нажмите кнопку <b>Создать проект</b>. Введите имя проекта в поле <b>Название проекта</b> и нажмите кнопку <b>Создать</b>. Когда проект будет создан, появится оповещение в правом верхнем углу страницы. Нажмите на имя проекта, чтобы открыть его.</li>
<li>Включите нужные API:
@ -241,7 +241,7 @@
<li>Вернитесь на страницу <b>Панель управления</b>, нажмите кнопку <b>Включить API и сервисы</b>. В разделе <b>Социальные сети</b> таким же образом включите <b>Google People API</b> и <b>Contacts API</b>.</li>
</ul>
</li>
<li>Настройте окно запроса доступа:
<li>Настройте окно запроса доступа OAuth, добавьте область действия и тестовых пользователей:
<ul>
<li>В меню навигации в левом верхнем углу выберите раздел <b>API и сервисы</b> -> <b>Окно запроса доступа OAuth</b>.</li>
<li>Выберите <b>User Type</b> и нажмите кнопку <b>Создать</b>.</li>
@ -251,6 +251,8 @@
<li>Нажмите кнопку <b>Сохранить и продолжить</b>.</li>
<li>Нажмите кнопку <b>Добавить или удалить область действия</b>. Откроется новый экран. В разделе <b>Добавить области действия вручную</b> введите <code>https://www.googleapis.com/auth/drive</code> в поле ввода и нажмите кнопку <b>Добавить в таблицу</b>, затем нажмите <b>Обновить</b>.</li>
<li>Нажмите кнопку <b>Сохранить и продолжить</b>.</li>
<li>В разделе <b>Тестовые пользователи</b> нажмите кнопку <b>Add users</b>. Укажите нужные аккаунты Google и нажмите кнопку <b>Добавить</b>. </li>
<li>Нажмите кнопку <b>Сохранить и продолжить</b>.</li>
</ul>
</li>
<li>Получите <code>Идентификатор клиента</code> и <code>Секрет клиента</code>:
@ -272,11 +274,14 @@
<ol>
<li>Перейдите в <a target="_blank" class="links" href="https://console.cloud.google.com">консоль Google Cloud Platform</a>.</li>
<li>Войдите в свою учетную запись.</li>
<li>В меню навигации в левом верхнем углу выберите раздел <b>IAM & admin</b> -> <b>Service accounts</b>.</li>
<li>Нажмите на кнопку <b>Create service account</b>,</li>
<li>Укажите <b>Service account name</b> и нажмите кнопку <b>Create</b>,</li>
<li>Выберите роль <b>Owner</b> и нажмите кнопку <b>Continue</b>,</li>
<li>Нажмите на кнопку <b>Create key</b>, выберите тип <b>JSON</b> и нажмите кнопку <b>Create</b>,</li>
<li>В меню навигации в левом верхнем углу выберите раздел <b>IAM и администрирование</b> -> <b>Сервисные аккаунты</b>.</li>
<li>Выберите один из существующих проектов или создайте новый.</li>
<li>Нажмите на кнопку <b>Создать сервисный аккаунт</b>.</li>
<li>Укажите <b>Название сервисного аккаунта</b> и нажмите кнопку <b>Создать</b>.</li>
<li>Выберите роль <b>Владелец</b> и нажмите кнопку <b>Продолжить</b>.</li>
<li>При необходимости предоставьте доступ к этому сервисному аккаунту для пользователей: укажите нужные аккаунты Google и нажмите кнопку <b>Готово</b>.</li>
<li>На странице со списком сервисных аккаунтов нажмите на кнопку меню в поле <b>Действия</b> и выберите опцию <b>Создать ключ</b>.</li>
<li>В новом открывшемся окне выберите тип <b>JSON</b> и нажмите кнопку <b>Создать</b>.</li>
<li>Файл .json, содержащий приватный ключ, будет сохранен на вашем компьютере. Для подключения сервиса GoogleCloud потребуется открыть этот файл .json в текстовом редакторе, скопировать его содержимое и вставить в поле <b>json</b> на портале.</li>
</ol>