palbaseDocs

Palbase Auth API · API

PUT/admin/social-auth/credentials/{key}

Store a social provider credential

Store or replace a provider secret (an OAuth client secret or Apple's signing key). The secret is encrypted and never returned; clients refer to it by key.

Called by your server, with the project's secret key.

Path

keystring · required

Headers

If-Matchstring · required
curl
curl -X PUT "https://<your-ref>.palbase.studio/admin/social-auth/credentials/<key>" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"client_secret":"string","kind":"oauth_client_secret","provider":"google"}'

Responses

200Current configuration; secrets are never returned

400Bad Request

401Unauthorized

403Not permitted with this key; or the project is the platform's own (`owner_only`): every change on its admin surface — any account's address, password, factors, sessions or roles, an account made or imported, a sign-in minted, a setting — is its owner's or its operator's alone. The request carries, besides the project's key, the owner's access token (X-Palbase-Owner; a passkey sign-in of the last 15 minutes, else 401 `insufficient_user_authentication`) or the operator's token (X-Palbase-Operator). Its key reads.

404Not Found

409Conflict

410Gone

412Configuration changed; read again before saving

413Request Entity Too Large

422Unprocessable Entity

428If-Match is required

429Too Many Requests

503Service Unavailable

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation SocialCredentialPut of auth's contract.