Oauth2
Google Cloud Bearer Token Expiry
Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question. Provide details and share your research! Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers.
https://stackoverflow.com/questions/50370714/google-cloud-bearer-token-expiry
Using OAuth 2.0 for Server to Server Applications | Google Identity | Google Developers
Important: If you are working with Google Cloud Platform, unless you plan to build your own client library, use service accounts and a Cloud Client Library instead of performing authorization explicitly as described in this document. For more information, see Authentication Overview in the Google Cloud Platform documentation.
https://developers.google.com/identity/protocols/oauth2/service-account#python_1

Authenticating as a service account | Authentication | Google Cloud
This topic explains how to authenticate an application as a service account. For general information about authentication to Google Cloud APIs, including common authentication scenarios and strategies, see Authentication overview. For more information about service accounts, see service accounts in the Identity and Access Management documentation.
https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application
