Google auth
Save Google Auth Credentials
Save Google Auth Credentials
Save or update Google service account credentials for Google Groups lookup. These credentials are used to fetch a user's Google Groups during OAuth authentication.
Required:
- A Google Cloud service account with domain-wide delegation
- The Google Workspace admin email for impersonation
Request Body
application/json
POST /otto/api/google-auth/credentials Request body
adminEmail*string
Admin email for domain-wide delegation
Match
^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$Format
emailserviceAccountJson*
Response Body
application/json
application/json
curl -X POST "https://your.server.net/otto/api/google-auth/credentials" \ -H "Content-Type: application/json" \ -d '{ "adminEmail": "user@example.com", "serviceAccountJson": { "auth_provider_x509_cert_url": "http://example.com", "auth_uri": "http://example.com", "client_email": "user@example.com", "client_id": "string", "client_x509_cert_url": "http://example.com", "private_key": "string", "private_key_id": "string", "project_id": "string", "token_uri": "http://example.com", "type": "service_account" } }'{
"messages": [
{
"code": 0,
"text": "ok"
}
],
"response": {}
}{
"messages": [
{
"code": 18011,
"text": "OttoFMS sample error"
}
],
"response": {}
}