Hi,
We’re integrating our MCP server with Google Gemini Connected Apps using OAuth 2.0 Authorization Code flow with PKCE.
We noticed that the Google Connected Apps setup requires a Client Secret, while other MCP clients, such as Claude, allow it to be omitted when using PKCE.
According to your documentation:
-
PKCE is supported and used to secure the authorization code exchange.
-
The Client Secret is marked as optional for pre-registered clients.
We’d like to understand:
-
Is there a reason Google requires a Client Secret even when PKCE is enabled?
-
Does Google support a public OAuth client (without a Client Secret) with Authorization Code + PKCE?
-
If the Client Secret field is mandatory in the UI, is there a supported way to use PKCE without an actual secret?
We’d prefer not to introduce a Client Secret if PKCE already provides the required protection.
Thanks!