hmLoadTopic({
hmKeywords:"文档,Google Drive,OAuth 2.0",
hmTitle:"Google Drive",
hmDescription:"此页面仅在 MDaemon Remote Administration (MDRA) 的 web 界面中可用。",
hmPrevLink:"wc--dropbox.html",
hmNextLink:"wc--categories.html",
hmParentLink:"index.html",
hmBreadCrumbs:"设置菜单 &gt; Web &amp; IM 服务 &gt; Webmail",
hmTitlePath:"设置菜单 > Web & IM 服务 > Webmail > Google Drive",
hmHeader:"<h1 class=\"p_Heading1\" style=\"page-break-after: avoid;\"><span class=\"f_Heading1\">Google Drive<\/span><\/h1>\n\r",
hmBody:"<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:64.3125rem; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\">此页面仅在 <a href=\"webadmin_web-config.html\" class=\"topiclink\">MDaemon Remote Administration (MDRA)<\/a> 的 web 界面中可用。<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><span class=\"f_Heading2\">Google Drive 集成<\/span><\/h2>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">MDaemon Webmail 可以向用户提供将邮件附件直接保存到其 Google Drive 账户，以及编辑和处理存储在那里的文档的选项。要实现这一点，需要 <\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">API Key<\/span><span class=\"f_BodyText\">、<\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">Client ID<\/span><span class=\"f_BodyText\"> 和 <\/span><span class=\"f_BodyText\" style=\"font-weight: bold;\">Client Secret<\/span><span class=\"f_BodyText\">。所有这些都是直接从 Google 获得的，方法是使用 Google API Console 创建一个应用程序，并在他们的服务中注册你的 MDaemon。OAuth2.0 验证组件是此应用程序的一部分，它允许您的 Webmail 用户登录 Webmail，然后通过 MDaemon 授权访问其 Google Drive 账户。一旦授权，用户可以查看他们在 Google Drive 中的文件夹和文件。此外，他们还能上传、下载、移动、复制、重命名和删除文件，以及将文件复制\/移动到本地文档文件夹。如果用户想要编辑文档，点击在 Google Drive 中查看文件的选项将允许用户根据其在 Google Drive 中设置的权限对其进行编辑。Google Drive 的设置过程与 MDaemon 的 <a href=\"wc--dropbox.html\" class=\"topiclink\">Dropbox 集成<\/a>和 <a href=\"multipop.html\" class=\"topiclink\">MultiPOP OAuth 集成<\/a>功能类似。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">启用 Google Drive 集成<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">点击此勾选框来启用 Google Drive 集成。还请参阅： 下方的<\/span><span class=\"f_ControlIndent\" style=\"font-weight: bold;\">设置 Google Drive 集成<\/span><span class=\"f_ControlIndent\">。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive API Key：<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">这是您在创建应用时，在 Google Drive API 控制台中，为您生成的唯一 API 密钥。将该密钥复制并粘贴到此处。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive Client ID<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">这是您在 Google API 控制台中创建 Google Drive 应用时，分配给它的唯一客户端 ID。创建完应用程序后，复制其客户端 ID，并将其粘贴到此处。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">Google Drive Client Secret<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">这是您在 Google API 控制台中创建 Google Drive 应用时，分配给它的唯一 Client Secret。创建完应用程序后，复制其 Client Secret，并将其粘贴到此处。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">重定向 URI<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">您必须在创建 Google Drive 应用时，指定一个或多个重定向 URI。作为示例的“重定向 URI”从您<a href=\"domain-manager.html\" class=\"topiclink\">默认域的<\/a> <a href=\"domain-manager_host_name_ip.html\" class=\"topiclink\">SMTP 主机名称<\/a>构建而成, 在登录到 Webmail 时应能适用于该域的用户。您应该在用户登录 Webmail 时，为他们前往的任何其他 MDaemon 域，将额外的重定向 URI 添加到您的应用程序。例如，“<\/span><span class=\"f_PlainText\">https:\/\/mail.example.com\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive<\/span><span class=\"f_ControlIndent\">”将适用于在登录 Webmail 时，前往 <\/span><span class=\"f_PlainText\">mail.example.com<\/span><span class=\"f_ControlIndent\"> 的任何用户。还请参阅： 下方的<\/span><span class=\"f_ControlIndent\" style=\"font-weight: bold;\">创建并链接您的 Google Drive App<\/span><span class=\"f_ControlIndent\">来获取更多信息。<\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">编辑隐私策略文本<\/span><\/p>\n\r<p class=\"p_ControlIndent\"><span class=\"f_ControlIndent\">Google Drive 集成需要您定期向用户提供一个转至批准的隐私策略的链接。点击此按钮来编辑您的隐私策略。<\/span><\/p>\n\r<h2 class=\"p_Heading2\" style=\"page-break-after: avoid;\"><a id=\"oauth-app-instructions\" class=\"hmanchor\"><\/a><img id=\"toggle0186a1_ICON\" class=\"dropdown-toggle-icon\" alt=\"创建和链接您的 Google Drive 应用\" title=\"创建和链接您的 Google Drive 应用\" style=\"margin:0;width:0.5625rem;height:0.5625rem;border:none\" src=\".\/images\/hmtoggle_plus0.gif\"\/><span class=\"f_Heading2\"> <a id=\"toggle0186a1_LINK\" class=\"dropdown-toggle\" title=\"创建和链接您的 Google Drive 应用\" href=\"javascript:void(0)\" data-type=\"dropdown\" data-state=\"0\" data-icon=\"toggle0186a1_ICON\" data-src0=\".\/images\/hmtoggle_plus0.gif\" data-src1=\".\/images\/hmtoggle_plus1.gif\">创建和链接您的 Google Drive 应用<\/a><\/span><\/h2>\n\r<p class=\"p_BodyText\"><span class=\"f_BodyText\">创建 Google Drive 应用的按步指南。<\/span><\/p>\n\r<div id=\"toggle0186a1\" class=\"dropdown-toggle-body\" style=\"text-align: left; text-indent: 0; line-height: 1.0; padding: 0 0 0 0; margin: 0 0 0 0;display:none\"><table style=\"border:none; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; padding:0.1250rem; border:none\"><p class=\"p_List1\"><span class=\"f_List1\">按照以下步骤来创建一个 Google 应用程序，由此来允许用户在<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">文档<\/span><span class=\"f_List1\">页面上的 Webmail 内访问 Google Drive。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">1.<\/span><span class=\"f_List1\">登录 <a href=\"webadmin_web-config.html\" class=\"topiclink\">MDaemon Remote Administration<\/a> 并前往 Google Drive 页面 (位于“主页 » Webmail 设置”下)，然后启用“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">启用 Google Drive 集成<\/span><span class=\"f_List1\">”这个选项。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">2.<\/span><span class=\"f_List1\">在单独的浏览器选项卡上，登录您的 Google 账户并前往 <a href=\"https:\/\/console.developers.google.com\/\" target=\"_blank\" class=\"weblink\" title=\"Google API 控制台\">Google API 控制台<\/a>.<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">3.<\/span><span class=\"f_List1\">如果位于“项目列表”上，请点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">NEW PROJECT<\/span><span class=\"f_List1\">”，如果位于<a href=\"https:\/\/console.cloud.google.com\/cloud-resource-manager\" target=\"_blank\" class=\"weblink\" title=\"管理资源页面\">管理资源页面<\/a>，请点击<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">(+) CREATE PROJECT<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">4.<\/span><span class=\"f_List1\">输入<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">项目名称，<\/span><span class=\"f_List1\">例如“Google Drive for MDaemon”，如果您希望编辑项目 ID 或使其保留默认值，请点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">编辑<\/span><span class=\"f_List1\">”。<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">请注意：<\/span><span class=\"f_List1\"> 在创建项目后无法更改项目 ID。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">5.<\/span><span class=\"f_List1\">如果您有<a href=\"https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-organization\" target=\"_blank\" class=\"weblink\" title=\"组织资源\">组织资源<\/a>。请在 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Location<\/span><span class=\"f_List1\"> 中将其选中。否则，保持“无组织”的设置。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">6.<\/span><span class=\"f_List1\">一旦加载，请点击 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ ENABLE APIS AND SERVICES<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">7.<\/span><span class=\"f_List1\">在搜索字段，请输入“Google Drive”，选择 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Google Drive API<\/span><span class=\"f_List1\"> 并点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">启用<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">8.<\/span><span class=\"f_List1\">在左窗格的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">APIs &amp; Services<\/span><span class=\"f_List1\">”下，请点击 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Credentials<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">9.<\/span><span class=\"f_List1\">点击位于页面顶部的 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ Create Credentials<\/span><span class=\"f_List1\">，并在下拉菜单中选择<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">API Key<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">10.<\/span><span class=\"f_List1\">复制<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">您的 API 密钥<\/span><span class=\"f_List1\"> (附近有一个“复制到剪贴板”的图标)。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">11.<\/span><span class=\"f_List1\">切换到您浏览器的 MDaemon 选项卡并将其贴入 MDaemon 中 Google Drive 页面上的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Google Drive API Key<\/span><span class=\"f_List1\">”字段 (人如果您想稍后执行这一步，请将其保存到其他位置)。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">12.<\/span><span class=\"f_List1\">在左窗格的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">APIs &amp; Services<\/span><span class=\"f_List1\">”下，请点击 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth 同意屏幕<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">13.<\/span><span class=\"f_List1\">在“User Type”下，选择“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">External<\/span><span class=\"f_List1\">”并点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Create<\/span><span class=\"f_List1\">”。<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">请注意：<\/span><span class=\"f_List1\">如果您有<a href=\"https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-organization\" target=\"_blank\" class=\"weblink\" title=\"组织资源\">组织资源<\/a>，或取决于您应用的发布状态，选择“Internal”可能会更好。还请参阅<a href=\"google-drive.html#publishing-status\" class=\"topiclink\">发布状态<\/a>来获得更多信息。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">14.<\/span><span class=\"f_List1\">输入<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">应用名称<\/span><span class=\"f_List1\"> (例如 Google Drive for Webmail)、供用户联系的<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">技术支持邮件地址<\/span><span class=\"f_List1\">、供 Google 对于项目变更可以联系到的<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">开发人员邮件地址<\/span><span class=\"f_List1\">。这就是该页面上需要完成的全部设置，不过取决于您特定的组织或验证要求，您还能输入公司徽标并链接到您的<a href=\"terms_of_use.html\" class=\"topiclink\">服务条款<\/a>和隐私策略 (见上)。会为您自动填写“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Authorized domains<\/span><span class=\"f_List1\">”字段，在您稍后添加“<\/span><span class=\"f_List1\" style=\"font-style: italic;\">Redirect URIs<\/span><span class=\"f_List1\">”这一步时。<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">请注意：<\/span><span class=\"f_List1\"> 此信息用于 Consent(同意)屏幕，该屏幕将呈现给用户，以授权 Webmail 访问用户的 Google Drive。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">15.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">16.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD OR REMOVE SCOPES<\/span><span class=\"f_List1\">”，并将下方的 URI 复制\/粘贴到 (您可以一次性全部复制\/粘贴)“Manually add scopes”下方的框。然后点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD TO TABLE<\/span><span class=\"f_List1\">”。<\/span><br \/>\n\r<span class=\"f_List1\">&nbsp;<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/userinfo.email<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.file<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/documents<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.metadata<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.photos.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/drive.activity.readonly<\/span><br \/>\n\r<span class=\"f_PlainText\">https:\/\/www.googleapis.com\/auth\/spreadsheets<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">17.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">18.<\/span><span class=\"f_List1\">在“Test Users”下，请点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD USERS<\/span><span class=\"f_List1\">”，输入 MDaemon 通过这个应用访问其 Google Drive 的每个 Google 账户，然后点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">ADD<\/span><span class=\"f_List1\">” (请参阅下方有关您应用的<a href=\"google-drive.html#publishing-status\" class=\"topiclink\">发布状态<\/a>的注释)。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">19.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Save and Continue<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">20.<\/span><span class=\"f_List1\">在 Summary 上，点击位于页面底部的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">BACK TO DASHBOARD<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">21.<\/span><span class=\"f_List1\">点击左窗格中的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Credentials<\/span><span class=\"f_List1\">”，点击 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">(+) Create Credentials<\/span><span class=\"f_List1\"> 并选择 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth client ID<\/span><span class=\"f_List1\">。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">22.<\/span><span class=\"f_List1\">在“Application type”下拉框中选择“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">Web application<\/span><span class=\"f_List1\">”，在“Authorized redirect URIs”下点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">+ ADD URIs<\/span><span class=\"f_List1\">”。输入重定向 URI。在 MDaemon 中 Google Drive 页面上显示的“重定向 URI ” 是从您<a href=\"domain-manager.html\" class=\"topiclink\">默认域的<\/a> <a href=\"domain-manager_host_name_ip.html\" class=\"topiclink\">SMTP 主机名称<\/a>构建而成的示例, 在登录到 Webmail 时应能适用于该域的用户。您应该在用户登录 Webmail 时，为他们前往的任何其他 MDaemon 域，将额外的重定向 URI 添加到您的应用程序。例如，“<\/span><span class=\"f_PlainText\">https:\/\/mail.example.com\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive<\/span><span class=\"f_List1\">”将适用于在登录 Webmail 时，前往 <\/span><span class=\"f_PlainText\">mail.example.com<\/span><span class=\"f_List1\"> 的任何用户。如果您还托管着名为“<\/span><span class=\"f_PlainText\">mail.company.test<\/span><span class=\"f_List1\">”的域，您需要为该域输入“重定向 URI”，例如“<\/span><span class=\"f_PlainText\">https:\/\/mail.company.test\/WorldClient.dll?View=OAuth&amp;AuthRequest=GoogleDrive”。<\/span><span class=\"f_List1\"> <\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">23.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">CREATE<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1_LastItem\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">24.<\/span><span class=\"f_List1_LastItem\">将“<\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">Your Client ID<\/span><span class=\"f_List1_LastItem\">”和“<\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">Your Client Secret<\/span><span class=\"f_List1_LastItem\">”中的值复制到 MDaemon 中 Google Drive 页面上的“<\/span><span class=\"f_List1_LastItem\" style=\"font-style: italic;\">Google Drive Client ID<\/span><span class=\"f_List1_LastItem\">”和“<\/span><span class=\"f_List1_LastItem\" style=\"font-style: italic;\">Google Drive Client Secret<\/span><span class=\"f_List1_LastItem\">”框中。如果您之前没有这样做，您也可以输入您的 Google Drive API Key。<\/span><\/p>\n\r<p style=\"margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><a id=\"publishing-status\" class=\"hmanchor\"><\/a><\/p>\n\r<div style=\"text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 3.0625rem 0.8750rem 3.0000rem;\"><table style=\"background-color:#ffffe6; border:solid thin #000000; border-spacing:0;\">\n\r<tr>\n\r<td style=\"vertical-align:top; width:3.1250rem; height:3.1250rem; padding:0.3125rem; border:none\"><p class=\"p_NoFormat\"><img style=\"margin:0;width:3.1250rem;height:3.1250rem;border:none\" src=\".\/images\/lightbulb_on_50_yback.gif\"\/><\/p>\n\r<\/td>\n\r<td style=\"vertical-align:top; width:64.3125rem; padding:0.3125rem; border:none\"><p class=\"p_Notes\"><span class=\"f_Notes\" style=\"font-weight: bold;\">发布状态<\/span><span class=\"f_Notes\"> — 这些指示用于通过 <a href=\"https:\/\/support.google.com\/cloud\/answer\/10311615#publishing-status\" target=\"_blank\" class=\"weblink\" title=\"google.com 中提供有关发布状态的更多详细信息\">发布状态（<\/a>被设置成“<\/span><span class=\"f_Notes\" style=\"font-weight: bold;\">Testing<\/span><span class=\"f_Notes\">”）来创建 Google 应用。这需要您添加将使用该应用程序访问其 Google Drive 的每个特定 Google 账户，并且仅限于 100 个用户。此外在 Webmail 中，当您的用户被要求授权 MDaemon 访问 Google 时，会显示一条警告消息：&quot;确认用户对您的项目有测试访问权限，但应考虑向未验证的应用程序授予对其数据的访问权限所存在的相关风险。&quot; 此外，授权在七天后到期，因此每个用户都需要每周重新授权 Google 访问。<\/span><\/p>\n\r<p class=\"p_Notes\"><span class=\"f_Notes\">如果您希望删除这些要求和限制，那么您必须将您的状态更改为“<\/span><span class=\"f_Notes\" style=\"font-weight: bold;\">In Production<\/span><span class=\"f_Notes\">” ，这可能需要也可能不需要您将 User Type 从外部更改为内部，进行应用程序验证过程，或两者兼而有之。有关应用程序验证和发布状态的更多信息，请参阅以下 Google 文章: <a href=\"https:\/\/support.google.com\/cloud\/answer\/10311615\" target=\"_blank\" class=\"weblink\" title=\"Google 文章 - 设置您的 OAuth 同意屏幕\">设置您的 OAuth 同意屏幕<\/a>和 <a href=\"https:\/\/support.google.com\/cloud\/answer\/9110914\" target=\"_blank\" class=\"weblink\" title=\"Google 文章 - OAuth API 验证常见问题解答\">OAuth API 验证常见问题解答<\/a>.<\/span><\/p>\n\r<\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_DialogSectionHeading\" style=\"page-break-after: avoid;\"><span class=\"f_DialogSectionHeading\">在 Webmail 中授权 Google Drive<\/span><\/p>\n\r<p class=\"p_BodyText2\"><span class=\"f_BodyText2\">一旦您创建了您的 Google Drive 应用程序，并根据上述说明配置了 MDaemon 的谷 Google Drive 页面，每个希望在 Webmail 中访问其 Google Drive 的用户必须首先授权访问才能这样做。要实现这点，每名用户应该：<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">1.<\/span><span class=\"f_List1\">登录到 Webmail<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">2.<\/span><span class=\"f_List1\">点击右上角的“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">选项”图标<\/span><span class=\"f_List1\">，并点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">云端应用<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">3.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">设置 Google Drive<\/span><span class=\"f_List1\">” (这将打开 <\/span><span class=\"f_List1\" style=\"font-weight: bold;\">OAuth 2.0<\/span><span class=\"f_List1\"> 页面)。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">4.<\/span><span class=\"f_List1\">点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">连接至 Google Drive<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">5.<\/span><span class=\"f_List1\">如果未登录，Google Drive 将询问他们登录信息或选择账户。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">6.<\/span><span class=\"f_List1\">他们可能会收到一条警告消息，上面写着“Google 尚未验证此应用程序。您已被授权访问当前正在测试的应用程序。只有在您知道邀请您的开发人员时才继续。” 点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">继续<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">7.<\/span><span class=\"f_List1\">选择 Webmail 可以访问的 Google Drive 功能，点击“<\/span><span class=\"f_List1\" style=\"font-weight: bold;\">继续<\/span><span class=\"f_List1\">”。<\/span><\/p>\n\r<p class=\"p_List1\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">8.<\/span><span class=\"f_List1\">最后一个页面将显示，说明 MDaemon 现在已连接到 Google Drive。然后他们可以关闭此窗口。<\/span><\/p>\n\r<p class=\"p_List1_LastItem\" style=\"text-indent: 0; padding-left: 1.6875rem; margin-left: 2.0625rem;\"><span class=\"f_List1\" style=\"display:inline-block;width:1.6875rem;margin-left:-1.6875rem\">9.<\/span><span class=\"f_List1_LastItem\">现在他们可以从其 Webmail 中的“<\/span><span class=\"f_List1_LastItem\" style=\"font-weight: bold;\">文档<\/span><span class=\"f_List1_LastItem\">”页面来访问 Google Drive 了。<\/span><\/p><\/td>\n\r<\/tr>\n\r<\/table>\n\r<\/div>\n\r<p class=\"p_SeeAlso\" style=\"page-break-after: avoid; border-right: none; border-bottom: none; border-left: none;\"><span class=\"f_SeeAlso\">还请参阅：<\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"multipop.html\" class=\"topiclink\">MultiPOP OAuth<\/a><\/span><\/p>\n\r<p class=\"p_SeeAlsoLinks\" style=\"page-break-after: avoid;\"><span class=\"f_SeeAlsoLinks\"><a href=\"wc--dropbox.html\" class=\"topiclink\">Dropbox 集成<\/a><\/span><\/p>\n\r<p class=\"p_ControlHeading\" style=\"page-break-after: avoid;\"><span class=\"f_ControlHeading\">&nbsp;<\/span><\/p>\n\r"
})
