Web App Integration¶
For web applications, the partner backend is the trust boundary.
Browser
-> partner backend
-> Yanez API
The browser must never receive the partner private signing key.
Recommended Flow¶
- The browser asks the partner backend to start or continue a Yanez flow.
- The partner backend creates any required signed Yanez request.
- The partner backend stores local pending state.
- The browser displays the returned link or QR code (see Deep Link Signing).
- YanezYID or the browser ceremony completes.
- The partner backend validates the resulting
yidwith Yanez.
Backend Responsibilities¶
The partner backend should:
- store the Ed25519 private key securely
- sign Yanez partner API requests
- keep local user/session state
- validate any
yidbefore trusting it - handle retries and idempotency
- keep production and sandbox credentials separate
Browser Responsibilities¶
The browser can:
- call the partner backend
- display partner-generated flow links or QR codes
- show pending, success, or failure states
The browser should not:
- sign Yanez API requests directly
- contain private keys
- call signed Yanez partner endpoints directly
Validating a User¶
After the user completes a Yanez flow and the partner backend receives a yid,
the backend should call:
POST /api/partners/records/validate
If the partner also receives a user public key, include it in the validation request.