AuthMode与多个已登录用户混淆 [英] AuthMode gets confused w/ multiple logged in users

查看:286
本文介绍了AuthMode与多个已登录用户混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Google Apps脚本中的一个奇怪问题,正在使用幻灯片插件.

I'm bumping into a weird problem in Google Apps Script, working on a Slides add-on.

当我在隐身窗口中运行插件时,只有一个用户登录(称为用户B),一切正常.

When I run the add-on in an incognito window with just one user logged in (call it User B), everything works fine.

当我在有多个用户登录的情况下运行附加组件(在同一Chrome选项卡中将其称为用户A和B)时,Apps Script似乎对授权感到困惑.当我尝试将附件用作用户B时(如右上角显示的配置文件所示),该附件的所有功能均失败了,我猜测是因为该附件缺少授权.请注意,该插件一直保持安装在用户B的帐户上,并且仅在用户B登录后仍可在隐身窗口中使用.

When I run the add-on with multiple users logged in (call it Users A and B in the same Chrome tab), it seems like Apps Script gets confused around the authorization. When I try to use the add-on as User B (as evidenced by the profile showing up in the upper right corner), all functionality of the add-on fails, I'm guessing because it lacks authorization. Note that the add-on has remain installed on User B's account this whole time, and it still works in the incognito window with just User B logged in.

对此有任何提示吗?在多次登录的情况下,是否有办法强制"加载项使用用户B的授权?

Any tips on this? Is there a way to "force" the add-on to use the authorization of User B in the multi-logged-in case?

推荐答案

在多个登录状态下处于活动状态已知同一浏览器会导致Google授权问题.

默认帐户(通常是首次登录的帐户)优先于任何其他帐户. Google尚未完全解决此问题.当前的解决方法是建议您的用户注销所有其他帐户.

The default account (typically the account that was first logged into) takes precedence over any other accounts. Google has yet to fully resolve this. Current work-around is to recommend to your users to log out of all other accounts.

这篇关于AuthMode与多个已登录用户混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆