palbaseDocs

Palbase Stores · API

POST/stores/connect/apple-id

Sign an Apple ID in

Takes an Apple ID and its password, sealed to the link's seal_key, with a grant: the stores module opens the password and hands it to Apple. It is in no row, event or log, and nothing on its way reads it. Apple then asks for a code (step: code), the Apple ID's team is to be chosen (step: team), or it is connected (step: connected, emitting stores.apple.session.changed). Each password counts against the link (3), the project's hour (6) and the Apple ID's hour, whatever project tries it (10); past either hour, 429 too_many_attempts.

Called by .

Request body

apple_idstring · requiredThe Apple ID.
grantstring · requiredThe link's grant.
password_sealedstring · requiredThe password, sealed to the grant's seal_key (AppleIDGrant): base64url of the encapsulated key and the ciphertext. Opened by the stores module alone, handed to Apple, never kept. A password in the clear is no field of the request.
curl
curl -X POST "https://<your-ref>.palbase.studio/stores/connect/apple-id" \
  -H "content-type: application/json" \
  -d '{"apple_id":"string","grant":"string","password_sealed":"string"}'

Responses

200Where the sign-in stands

400Validation failed, or the password is not sealed to this link's key for its grant (`password_unsealed`)

410The link is used, expired, or out of tries

413The body is too large

422Apple refused the Apple ID or password (`apple_credentials_refused`), or holds its sign-in until its holder acts at appleid.apple.com (`apple_account_action`)

429Over the project's request limit or quota

502Apple's sign-in could not be reached; trying again is safe

503Temporarily unavailable; retrying is safe after Retry-After

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

Operation SignInAppleID of stores's contract.