无需oAuth即可连接到非Google Services的Gmail附加组件 [英] Gmail add-on connecting to non-Google Services without oAuth

查看:82
本文介绍了无需oAuth即可连接到非Google Services的Gmail附加组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在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.您可以使用OAuth2 for Apps脚本库(也有OAuth1版本)来简化此过程.

However, if the non-Google service does require authorization, you'll have to configure OAuth for that service. You can make this process easier by using the OAuth2 for Apps Script library (there is also an OAuth1 version).

您的服务仍可以使用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附加组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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