authentication method suggestion

12 views
Skip to first unread message

biagio devel

unread,
Dec 10, 2021, 11:58:52 AM12/10/21
to Google APIs Discovery Service Users
I would like to create a client application, which manages the calendar of my google account by calling the google_api.
I didn't quite understand how to authenticate requests.
I am using google-api-php-client https://github.com/googleapis/google-api-php-client
I've read the AOuth2 documentation, and I've been able to put the code into practice and authenticate via AOuth2, but I'm not sure if that's the right authentication method for me.
I have to manage the calendar of my google account only!

https://developers.google.com/workspace/guides/create-credentials#web
You can use either an:
     • OAuth client ID
     • or a service account with domain delegation of authority

maybe the "service account" is the one for me ???

Or do I have to use OAuth2 authentication, retrieve an acces_token, store it in my application, and use it on every request?

tks from now for your answers

biagio devel

unread,
Dec 10, 2021, 5:43:06 PM12/10/21
to google-api...@googlegroups.com
EDIT from the GoogleCloudPlatform panel I created a "service account", application authentication works ... but how can I connect it with a google account to manage it: calendar, drive, ....?

--
You received this message because you are subscribed to a topic in the Google Groups "Google APIs Discovery Service Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apis-discovery/GQpXEXlPtAc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apis-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apis-discovery/88ed3898-45fd-4680-bc1f-42fd23b65268n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages