Updated Google instructions, minor fixes - AuthorizationKeys.ascx

This commit is contained in:
Svetlana Maleeva 2021-02-05 11:06:26 +03:00
parent 38aeef8660
commit 33e9eda505
2 changed files with 31 additions and 27 deletions

View File

@ -200,7 +200,7 @@
</ul>
</li>
<li>Copy the generated id of the application, insert it into the <b>Application ID</b> field in the Document editor, and click the <b>Save</b> button;</li>
<li>Continue by logging into your Medeley account.</li>
<li>Continue by logging into your Mendeley account.</li>
</ol>
<h3 id="Zotero">Zotero
@ -209,11 +209,11 @@
<a onclick="showVideoContainer8();" class="references_video"><span class="playbackbutton"></span></a>
</div>
<ol>
<li>Go to the <a target="_blank" class="links" href="https://www.zotero.org/user/register/">Zetero registration</a> page and register a new account or or log into an existing account;</li>
<li>Proceed to <a target="_blank" class="links" href="https://www.zotero.org/settings/keys">Zetero API settings</a> and click the <b>Creare new private key</b> button;</li>
<li>Go to the <a target="_blank" class="links" href="https://www.zotero.org/user/register/">Zotero registration</a> page and register a new account or log into an existing account;</li>
<li>Proceed to <a target="_blank" class="links" href="https://www.zotero.org/settings/keys">Zotero API settings</a> and click the <b>Create new private key</b> button;</li>
<li>In the <b>New private key</b> page check the following checkboxes:
<ul>
<li><b>Personal Library</b> - Alow write access,</li>
<li><b>Personal Library</b> - Allow write access,</li>
<li><b>Default Group Permissions</b> - Read/Write.</li>
</ul>
</li>
@ -270,27 +270,29 @@
<ul>
<li>Click the navigation menu in the upper left corner and select the <b>APIs and services</b> -> <b>Dashboard</b> section.</li>
<li>Click the <b>Enable APIs and services</b> button on the top.</li>
<li>In the <b>G Suite</b> section, click the <b>Google Drive API</b> link, then click the <b>Enable</b> button.</li>
<li>Return to the <b>Dashboard</b> page, сlick 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>
<li>In the <b>Google Workspace</b> section, click the <b>Google Drive API</b> link, then click the <b>Enable</b> button.</li>
<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:
<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>
<li>Specify the <b>Application name</b> in the corresponding field.</li>
<li>Click the <b>Add scope</b> button. In a new window that opens, specify <code>../auth/drive</code> in the entry field, press <b>Enter</b> and click the <b>Add</b> button.</li>
<li>In the <b>Authorized domains</b> field, specify the <code>onlyoffice.com</code> domain and press <b>Enter</b>.</li>
<li>Click <b>Save</b>.</li>
<li>In the <b>App information</b> section, specify the <b>App name</b> and <b>User support email</b> in the corresponding fields.</li>
<li>In the <b>App domain</b> section, go to the <b>Authorized domains</b> subsection. Click the <b>Add domain</b> button and specify the <code>onlyoffice.com</code> domain in the entry field.</li>
<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>
</ul>
</li>
<li>Get <code>Client ID</code> and <code>Client secret</code>:
<ul>
<li>Click the navigation menu in the upper left corner and select the <b>APIs and services</b> -> <b>Credentials</b> section.</li>
<li>Click the <b>Create credentials</b> button and choose the <b>OAuth client ID</b> option in the list.</li>
<li>In the <b>Application type</b> list, select the <b>Web application</b> radio button.</li>
<li>Introduce "https://service.onlyoffice.com" in the <b>Authorized JavaScript origins</b> field and press <b>Enter</b>.</li>
<li>Introduce "https://service.onlyoffice.com/oauth2.aspx" in the <b>Authorized redirect URIs</b> field and press <b>Enter</b>.</li>
<li>In the <b>Application type</b> list, select the <b>Web application</b> option.</li>
<li>In the <b>Authorized JavaScript origins</b> section, click the <b>Add URI</b> button and enter "https://service.onlyoffice.com" in the entry field.</li>
<li>In the <b>Authorized redirect URIs</b> section, click the <b>Add URI</b> button and enter "https://service.onlyoffice.com/oauth2.aspx" in the entry field.</li>
<li>Click the <b>Create</b> button.</li>
<li>Your <code>Client ID</code> and <code>Client secret</code> will be displayed in a new window. Copy or write down them.</li>
</ul>

View File

@ -172,7 +172,7 @@
<li>добавьте описание для приложения в поле <b>Description</b>,</li>
<li>в разделе <b>Плагины</b> кликните на плагин <b>Mendeley</b> и скопируйте предоставленный URL адрес. Адрес выглядит следующим образом: <code>https://your.portal/ds-vpath/5.5.3-39/sdkjs-plugins/mendeley/oauth.html</code>,</li>
<li>примите <b>Terms and Conditions</b> (условия и положения),</li>
<li>сгенеритуйте <b>Secret</b>,</li>
<li>сгенерируйте <b>Secret</b>,</li>
<li>Нажмите на кнопку <b>Submit</b>, чтобы добавить приложение.</li>
</ul>
</li>
@ -183,11 +183,11 @@
<h3 id="Zotero">Zotero
<img alt="Значок Zotero" src="<%=VirtualPathUtility.ToAbsolute("~/images/help/tipstricks/zotero.png")%>" /></h3>
<ol>
<li>Перейдите на страницу <a target="_blank" class="links" href="https://www.zotero.org/user/register/">регистрации Zetero</a> и зарегистрируйте новую учетную запись или войдите в существующую учетную запись;</li>
<li>Перейдите на страницу <a target="_blank" class="links" href="https://www.zotero.org/settings/keys">настройки API Zetero</a> и щелкните на кнопку <b>Creare new private key</b> (Создать новый частный ключ);</li>
<li>На странице создания <b>New private key</b> отметье галочками следующие параметры:
<li>Перейдите на страницу <a target="_blank" class="links" href="https://www.zotero.org/user/register/">регистрации Zotero</a> и зарегистрируйте новую учетную запись или войдите в существующую учетную запись;</li>
<li>Перейдите на страницу <a target="_blank" class="links" href="https://www.zotero.org/settings/keys">настройки API Zotero</a> и щелкните на кнопку <b>Create new private key</b> (Создать новый частный ключ);</li>
<li>На странице создания <b>New private key</b> отметьте галочками следующие параметры:
<ul>
<li><b>Personal Library</b> - Alow write access,</li>
<li><b>Personal Library</b> - Allow write access,</li>
<li><b>Default Group Permissions</b> - Read/Write.</li>
</ul>
</li>
@ -236,27 +236,29 @@
<ul>
<li>В меню навигации в левом верхнем углу выберите раздел <b>API и сервисы</b> -> <b>Панель управления</b>.</li>
<li>Нажмите кнопку <b>Включить API и сервисы</b>, расположенную наверху.</li>
<li>В разделе <b>G Suite</b> нажмите на ссылку <b>Google Drive API</b>, а затем на кнопку <b>Включить</b>.</li>
<li>В разделе <b>Google Workspace</b> нажмите на ссылку <b>Google Drive API</b>, а затем на кнопку <b>Включить</b>.</li>
<li>Вернитесь на страницу <b>Панель управления</b>, нажмите кнопку <b>Включить API и сервисы</b>. В разделе <b>Социальные сети</b> таким же образом включите <b>Google People API</b> и <b>Contacts API</b>.</li>
</ul>
</li>
<li>Настройте окно запроса доступа:
<ul>
<li>В меню навигации в левом верхнем углу выберите раздел <b>API и сервисы</b> -> <b>Окно запроса доступа OAuth</b>.</li>
<li>Выберите <b>Вид приложения</b> и нажмите кнопку <b>Создать</b>.</li>
<li>Укажите имя приложения в поле <b>Название приложения</b>.</li>
<li>Нажмите кнопку <b>Добавить область действия</b>. Откроется новое окно. Введите <code>../auth/drive</code> в поле ввода, нажмите клавишу <b>Enter</b> и нажмите кнопку <b>Добавить</b>.</li>
<li>В поле <b>Авторизованные домены</b> укажите домен <code>onlyoffice.com</code> и нажмите клавишу <b>Enter</b>.</li>
<li>Нажмите кнопку <b>Сохранить</b>.</li>
<li>Выберите <b>User Type</b> и нажмите кнопку <b>Создать</b>.</li>
<li>В разделе <b>Сведения о приложении</b> укажите <b>Название приложения</b> и <b>Эл. адрес службы поддержки</b> в соответствующих полях.</li>
<li>В разделе <b>Домен приложения</b> перейдите в подраздел <b>Авторизованные домены</b>. Нажмите кнопку <b>Добавить домен</b> и укажите в поле ввода домен <code>onlyoffice.com</code>.</li>
<li>Укажите email в разделе <b>Контактная информация разработчика</b>.</li>
<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>
</ul>
</li>
<li>Получите <code>Идентификатор клиента</code> и <code>Секрет клиента</code>:
<ul>
<li>В меню навигации в левом верхнем углу выберите раздел <b>API и сервисы</b> -> <b>Учетные данные</b>.</li>
<li>Нажмите кнопку <b>Создать учетные данные</b> и выберите из списка опцию <b>Идентификатор клиента OAuth</b>.</li>
<li>В списке <b>Тип приложения</b> выберите переключатель <b>Веб-приложение</b>.</li>
<li>В поле <b>Разрешенные источники JavaScript</b> введите "https://service.onlyoffice.com" и нажмите клавишу <b>Enter</b>.</li>
<li>В поле <b>Разрешенные URI перенаправления</b> введите "https://service.onlyoffice.com/oauth2.aspx" и нажмите клавишу <b>Enter</b>.</li>
<li>В списке <b>Тип приложения</b> выберите опцию <b>Веб-приложение</b>.</li>
<li>В поле <b>Разрешенные источники JavaScript</b> нажмите кнопку <b>Добавить URI</b> и введите "https://service.onlyoffice.com" в поле ввода.</li>
<li>В поле <b>Разрешенные URI перенаправления</b> нажмите кнопку <b>Добавить URI</b> и введите "https://service.onlyoffice.com/oauth2.aspx" в поле ввода.</li>
<li>Нажмите кнопку <b>Создать</b>.</li>
<li><code>Идентификатор клиента</code> и <code>Секрет клиента</code> будут отображены в новом окне. Скопируйте или запишите их.</li>
</ul>