问题描述
是否可以在G-Suite(Gmail)加载项中对第三方服务进行身份验证,但无需oAuth .我要验证的服务可在REST API上使用,并且不支持oAuth.
Is it possible to authenticate to third-party service in G-Suite (Gmail) Add-ons, but without oAuth. The service I want to authenticate works on REST API and has no oAuth support.
对我来说,最好的方法是打开一个新窗口(与oAuth一样),然后在其中登录并将令牌返回到Gmail附加框架.如果无法做到这一点,我会在附加卡的专用Card中提供用户名和密码,但是我不确定该解决方案在Marketplace中发布时是否会通过Google验证.
The best for me would be to open a new window (as with oAuth), login there and return token to the Gmail add-on frame. If that won't be possible, I'd go with giving a username and password in dedicated Card in add-on, but I'm not sure it that solution will pass Google verification when publishing in Marketplace.
对于所有建议,我将不胜感激.
I'll be grateful for all the suggestions.
推荐答案
不幸的是,没有.当您将附加组件连接到第三方服务(例如您的应用程序服务器)时,Gmail会强制您设置单独的身份验证过程,以使用户可以使用您的服务.
Unfortunately no. When connecting your add-on to third party services(ex. your application server), Gmail forces you to set up a separate authentication process for user to go through to use your services.
您的服务仍可以使用Google OAuth对用户进行身份验证,您只需将其与Gmail插件分开设置即可.
Your service can still use Google OAuth to authenticate the user, you just need to set it up separately from your Gmail add-on.
您可以在此处了解更多信息: https ://developers.google.com/gmail/add-ons/how-tos/non-google-services
You can read more on it here: https://developers.google.com/gmail/add-ons/how-tos/non-google-services
也在我的帖子中,我说明了连接非-google服务来更详细地安装gmail插件
Also in my post I explain the process of connecting your non-google services to gmail add-on in more detail
这篇关于无需oAuth即可连接到非Google Services的Gmail附加组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!