Automatic account authentication via the calendar API, without the need for user interaction

I couldn't get a response via call, so I'm trying through the community.


We are developing an application that does not have a graphical interface. However, we look to the phase of the project where we will integrate with Google Calendar. After some testing, we noticed that the authentication used by Google is OAuth 2.0, which, according to the documentation, is protection for sensitive data. It is to use other types of authentication without user interaction.

 

We tried using the API Key method, but Postman returns that this type of authentication is not supported. In fact, our application will not have direct contact with the user, so it is not possible for them to approve authentication.

 

Analyzing the integration, we noticed that they use the Bearer Token, however, the token is only communicated with the user's authorization.

 

Doubts:

1) Is there another form of authentication that we can pass a generic email and password (example:sistemas@harpiaconsultoria.com) and thus, not have a user interface, because whoever will integrate is working in the Protheus/TOTVS system?

2) Is there a possibility for our domain to use the API Key (release) method? Because it is integration without an interface?

0 1 440
1 REPLY 1

See https://developers.google.com/workspace/guides/get-started for a guide that talks about how to do authentication. In this case, it sounds like what you want to do is to connect your app using one of the methods there with a user that has admin-level access to the calendars in your domain, so you can authenticate as that user when you set up the app, and then access all of the calendars in the Workspace instance via that user. See https://support.google.com/a/answer/1219251?hl=en#zippy=%2Cadmin-api for more. 

Hope that helps,

Ian