OneSay separates authentication facts from resource authorization.
- Human applications use Authorization Code + PKCE with the environment's dedicated sign-in client. Platform validates signature, exact issuer, audience and token time.
- Server applications use an environment-bound Platform API key or Service
Principal token. A browser must use a token provider and must never embed an
osp_*secret. - Devices provision once with a short-lived code, retain a per-device secret, and exchange that secret for a short-lived audience/grant-bound access token.
A client's own cookies and identity headers grant no Platform authority. Pre-production and Production identity configuration never overlap.
On the pre-production environment, Humans sign in through OneSay Cloud at
https://cloud.staging.onesay.com/cloud/sign-in/. Devices exchange their secret for an access
token with exchangeDeviceAccessToken (POST /v1/device-access-tokens); see
Device Provisioning. Production and more regional nodes are not deployed yet; each will have its own sign-in address.
Any authenticated request can answer 503 capability_authority_unavailable with
retryable: true when the server could not complete it just now. This says nothing against your credential, so keep it: retry with
backoff, using the same Idempotency-Key on a mutation. A refused credential
still answers a 401, such as token_invalid.