简体   繁体   English

发送google oauth电子邮件和密码

[英]send google oauth email and password

I'm using oauth to authenticate in google calendar, but i'm trying to send user and password to avoid open the authentication popup. 我正在使用oauth在Google日历中进行身份验证,但是我正尝试发送用户名和密码,以避免打开身份验证弹出窗口。 I'ts like automatic authentication. 我不喜欢自动身份验证。

Is it possible? 可能吗?

Thanks. 谢谢。

Since you want your application to always create events in a single calendar that is under your control, here is how I would do it: 由于您希望您的应用程序始终在您控制的单个日历中创建事件,因此我将这样做:

  1. Create a service account in Google Cloud Console - recent instructions on how to do so can be found here: google oauth2 how to get private key for service account 在Google Cloud Console中创建服务帐户-有关如何执行此操作的最新说明,可在此处找到: google oauth2如何获取服务帐户的私钥
  2. Share your calendar with that service account: https://support.google.com/calendar/answer/37082?hl=en 与该服务帐户共享您的日历: https : //support.google.com/calendar/answer/37082?hl=zh-CN
  3. Write your code to use the service account credentials (private key downloaded in step 1). 编写代码以使用服务帐户凭据(在步骤1中下载的私钥)。

I didn't post any sample code, as I'm not sure what language you are using. 我没有发布任何示例代码,因为我不确定您使用的是哪种语言。 The following has some discussion of this use-case in PHP: Access Google calendar events from with service account: { "error" : "access_denied" }. 下面对PHP中的该用例进行了一些讨论: 使用服务帐户{{“ error”:“ access_denied”}访问Google日历事件。 No google apps 没有Google应用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发送带有Google Calendar Api的电子邮件 - Send an email with Google Calendar Api 有什么方法可以在不显示浏览器的情况下将email @和密码传递给Google APi OAuth2(例如,是否在后台为许多帐户提供服务)? - Is there any way to pass email@ and password to Google APi OAuth2 without showing browser (i.e do it in background from a service for many accounts)? Google OAuth2.0 是否支持 grant_type=password? - Does Google OAuth2.0 support grant_type=password? Google 日历插入不发送邀请电子邮件 - Google Calendar insert does not send invitation email 如何从Google Python SDK oauth2获取电子邮件? - How to get email from Google Python SDK oauth2? 在 python 中发送谷歌日历事件时发送 email 通知 - send email notification when send google calendar event in python 无法通过 Outlook VBA 向 google 发送 OAuth 2.0 令牌 - Can not send OAuth 2.0 token to google via Outlook VBA Java Google Calendar API:创建事件时发送电子邮件通知 - Java Google Calendar API: Send email notification when creating event 通过电子表格和 Google 日历 API 向与会者的 email 发送邀请 - Send an invitation to attendees' email through Spreadsheet and Google Calendar API 使用OAuth2.0访问Google日历时出错。 和服务帐户:“模拟假冒电子邮件地址无效”。 - Error accessing Google Calendar using OAuth2.0. and service account: “Invalid impersonation prn email address.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM