Google OAuth token exchange gives 401 invalid_client after successful consent
I'm attempting to connect a local Python application to a Google Workspace mailbox using an internal Web application OAuth client, authorization-code flow with PKCE, and a loopback callback. Consent succeeds and the callback receives a code, but POST https://oauth2.googleapis.com/token returns HTTP 401 with invalid_client. This occurs before ID-token verification or refresh-token storage. Below is a reduced version of the token request from my application. The command-line prompts replace the application's runtime values and Keychain lookup. To use it, the code and PKCE verifier must come from
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.