Login with Google (oAuth) - Finding Client ID & Secret in Google Cloud Console (2026)
Source: Dev.to
Overview
Finding your OAuth Client ID and Secret in the Google Cloud Console can feel like searching for a needle in a haystack. As of 2026, there are three primary ways to locate these credentials quickly.
1. Use the Search Bar
- The search bar at the top of the console is optimized for users who have lost their credentials.
- Keywords to try:
Credentials,OAuth, orClients. - Result: The first result under Products & Pages will usually be APIs & Services > Credentials or the newer Google Auth Platform > Clients. Clicking it takes you directly to the list of all client IDs.
2. Navigate via the Sidebar
Google has consolidated identity tools, offering two clear navigation paths:
| Path | Steps |
|---|---|
| Primary Path | Navigation Menu (☰) → APIs & Services → Credentials |
| Newer Consolidated Path | Navigation Menu (☰) → Google Auth Platform → Clients |
These paths keep OAuth‑specific tasks separate from backend API keys.
2.1. Download the JSON File
If you see a client ID in the list but can’t locate the secret:
- Look for the Download JSON icon (a small tray with an arrow) on the far right of the row.
- Open the downloaded file in any text editor. It contains entries such as:
{
"client_id": "your-id-here",
"client_secret": "your-secret-here"
}
2.2. Reveal the Secret Inline
On the credential details page, a small eye icon appears next to the masked secret field (••••••••). Clicking the eye reveals the secret without needing to download a file.
3. Understand “Secret‑less” Clients
- For Android, iOS, or Chrome client IDs, Google does not issue a client secret.
- These platforms are considered public clients, where a secret cannot be safely stored in the code.
By using the search bar, the sidebar navigation, or the JSON download/eye‑icon methods, you can quickly locate your OAuth Client ID and Secret in the Google Cloud Console.