Excel加载项|使用功能区实施登录流程

问题描述

我正在使用Office.js,javascript并做出反应以创建excel加载项。想要使用功能区按钮实现单点登录流程。用户成功登录后,只希望向用户显示任务窗格。

  1. 功能区中的登录按钮。

  2. 我确实有如下所示的第三方URL,如果用户成功验证,它将重定向到给定的应用程序URL。 https://google.com?response_type=abc&client_Id=xyz&**redirect_uri=https://application-url-to-redirect* *

  3. 上述URL将打开用户名/密码窗口,并在提供有效详细信息后将其重定向用户重定向到应用程序URL,然后应打开任务窗格。

请帮助/建议我如何实现此功能。请指导我。 预先感谢。

解决方法

  1. 配置外接程序以使用shared runtime
  2. 使用Add-in command来配置按钮。
  3. 该按钮应在function file中调用代码。
  4. 功能文件代码应为use the Office dialog to authenticate to Google
  5. 身份验证完成后,对话框中的代码应为send a message to the parent function file
  6. 功能文件中的代码应先close the dialog,然后再show the task pane

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...