Hi there,
I am wondering
I used the forge GoogleCloudVision
and i have credential in json format. Where to put the credential?
thanks
Hi @IQ78
You cannot pass the JSON file directly. You need to retrieve the API key from your Google account and use it in the Server Action.
Alternatively, if the JSON file contains the required API credentials, please extract the relevant information and implement the authentication logic in the Server Action accordingly.
Please ensure that the credentials are handled securely and are not exposed on the client side.
I o not have the google api, only json like this:
{
"type": "service_account",
"project_id": "xxxxx7",
"private_key_id": "asasdadsa",
"private_key": "\n",
"client_email": "ddxx",
"client_id": "12222",
"auth_uri": "https://222h",
"token_uri": "https://oauth2.2222.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/sss",
"universe_domain": "googleapis.com"
}
You should not upload the JSON file itself into the GoogleCloudVisionOCR component. Instead, you extract the API key (or required fields) from that JSON and pass it into the component’s actions.
In OutSystems 11, the usual flow is:
Get the API key from the JSON
GoogleAPIKey
Store the key securely
GoogleCloudVisionAPIKey
Pass the key into the Forge actions
GoogleCloudVisionOCR
DetectText
DetectLabels
Site.GoogleCloudVisionAPIKey
If you must use the JSON itself (service account / JWT)
C:\
So, in summary:
The private_key_id is not the API key and won’t work where an API/key value is expected.
private_key_id
In OutSystems O11, when a provider requires “API key” authentication (for example, SendGrid or Google APIs), you typically need to:
Get the API key from the provider’s console
SG.xxxxx...
AIza...
Configure it in OutSystems
smtp.sendgrid.net
587
apikey
Do not confuse API keys with private keys used for JWT or RSA signing
CreateSignedAsymmetricTokenWithPemKey
If you share which external service you’re integrating (SendGrid, Google, AWS, etc.) and where you’re trying to use the “API key” inside OutSystems (REST, SMTP, JWT component, etc.), I can outline the exact field you should copy from the provider’s configuration.