简体   繁体   English

试图在没有OAuth同意屏幕的情况下授权AWS Lambda进行Google Calendar API调用

[英]Attempting to Authorize AWS Lambda for Google Calendar API Call without OAuth Consent Screen

I am writing an Alexa Skill that will use the Google Calendar API to give me a custom response based on the contents of my Google Calendar. 我正在编写一个Alexa技能,它将使用Google Calendar API根据我的Google日历内容为我提供自定义回复。 I am basically completed, except for one stumbling block. 我基本上已经完成了,除了一个绊脚石。 When I try to call the API from AWS Lambda, I get the following error: 当我尝试从AWS Lambda调用API时,出现以下错误:

Your browser has been opened to visit:

https://accounts.google.com/o/oauth2/auth?client_id=235499230491-5nkukk98kfnt16fvtmm2acrgq4r4ucr2.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcalendar.readonly&access_type=offline&response_type=code

If your browser is on a different machine then exit and re-run this application with the command-line parameter

--noauth_local_webserver

I was wondering if there could be any way that I could authenticate this AWS instance to accept my Google Calendar API. 我想知道是否可以通过任何方式验证此AWS实例以接受我的Google Calendar API。 Any thoughts, StackOverflow? 有什么想法,StackOverflow?

You need to use Google Service Accounts. 您需要使用Google服务帐户。

These are for server to server applications. 这些用于服务器到服务器应用程序。

https://developers.google.com/identity/protocols/OAuth2ServiceAccount https://developers.google.com/identity/protocols/OAuth2ServiceAccount

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

相关问题 Oauth2在aws lambda上谷歌人api - Oauth2 to google people api on aws lambda Google Cloud OAuth 同意屏幕未反映(内部)应用程序 scope 的更改 - Google Cloud OAuth consent screen not reflecting changes to scope of (internal) app Python Google Drive API oauth2-保存用户的授权同意书 - Python Google Drive API oauth2 - Save authorization consent for user 在没有OAuth的情况下从公共Google日历获取事件,仅使用API​​密钥? - GET events from PUBLIC Google calendar WITHOUT OAuth, just with API Key? 如何在本地Python代码中打开Goog​​le OAuth 2.0许可屏幕? - How do I open a Google OAuth 2.0 consent screen in a local Python code? AWS-调用Google Calendar API,Python - AWS - Calling Google Calendar API, Python 未经用户同意如何获取OAuth令牌? - How to get OAuth token without user consent? OAuth + Google日历+ Python - OAuth + Google Calendar + Python 适用于Python Flask的OAuth Web应用程序的Google Calendar API - Google Calendar API for OAuth Web Application in Python Flask Google Calendar API v3中对OAuth服务帐户的参加者有限制吗? - Restrictions on attendees for OAuth Service Accounts in Google Calendar API v3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM