google-cloud-console-oauth
Google Cloud Console — shared OAuth2 registration mechanics
Everything common to registering an OAuth 2.0 client for any Google API: the project, the Google Auth Platform app, the Web application client, redirect URIs, scope tiers, the secret, publishing status, and verification.
The product skills — Google APIs, Google Ads, Google Business Profile, Google Drive — assume this file and cover only what their API adds on top (a developer token, an access-request form, a restricted-scope decision). Read this first, then the product skill. If you are registering a plain Google OAuth client with no particular product in play, this file is the whole job.
Some products have a second console. Google Ads (manager account, Terms signature, API Center) and Google Business Profile (an access-request form) gate access outside the Cloud Console entirely. Where the product skill says so, a finished Cloud project is only half the credential.
Three things here are expensive to get wrong, and none fail at registration time. The client secret is shown exactly
once. An app left in Testing issues refresh tokens that expire in seven days, which looks like a working
integration for a week and then a mass outage. And every scope must be declared on the Data Access page, because
an authorize URL requesting an undeclared scope drops the user onto the unverified-app warning screen even if the app
is otherwise verified.