Hi,
I have been searching for an example but having no luck, so creating a new post here.
(Apologies if an example exists already, please direct me.)
How do you configure Postman with a Google Service Account to use OAuth2.0 ?
My Google Service Account has been enabled to access specific Google API endpoints.
I was given a creds.json file with the following key / values (which works in various py scripts).
"type": "service_account",
"project_id": "<redacted>",
"private_key_id": "<redacted>",
"private_key": <redacted key here>
"client_email": "[email protected]",
"client_id": "<redacted>",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/<redacted>.com"
Unfortunately I don’t see the options to enter this type of service account info into the native OAuth2.0 Configuration Options. For instance, I don’t have a Client Secret. In this case I believe I have to pass my Private Key back to Google to Auth.
I found a post on StackOverFlow
https://stackoverflow.com/questions/55205823/postman-and-google-service-account-how-to-authorize
Apparently I need to authorize with “Add authorization data to” Request Headers ? Or some other way to pass the creds…
Does anyone have an example to configure Postman with a service account like in my scenario?
Or a link to docs or a video?
Thank you in advance!