DocumentationBuild. Deploy. Operate.
DocsConcepts

Identity Gate

On this page 6 sections

Request-bound identity

Gated Identity ties protected HTTP requests to an authenticated client key. Each request carries an Ed25519 signature over its method, destination, path, body, timestamp and nonce. QSCS verifies that proof before forwarding the request, while your application retains control of account permissions.

The wire protocol uses HTTP and Ed25519 and is independent of application language. Your backend implements its verifier and account checks in its existing stack. Browser clients can use the packaged helpers; native and server clients implement the same signed-request contract with suitable libraries.

Components

The browser SDK loads the WASM signer and manages an encrypted identity blob in IndexedDB. A Web Crypto AES-GCM key wraps the persisted blob. The authentication authority validates credentials, and QSCS stores the resulting origin-scoped public-key binding in SpookDB. The backend receives verified identity and account headers through its trusted QSCS path.

Protect the browser page and its scripts: plaintext identity material crosses the JavaScript/WASM boundary during loading and wrapping. HTTPS, CSP and application security remain part of the deployment.

Canonical message

METHOD + LF + HOST + LF + URI + LF + BODY + LF + TS_MS + LF + NONCE_HEX

Fields are separated by a single LF with no trailing LF. The body is signed as raw bytes, the hostname excludes its port, and the timestamp uses Unix milliseconds. See Authentication & Signing for exact encodings.

Browser lifecycle

  1. QSCS injects the packaged client into the application page; the client loads its matching signer and WASM on first use.
  2. The SDK restores or creates the browser identity and resolves its ready promise.
  3. The browser signs a login request containing credentials, UUID and public key.
  4. QSCS verifies proof of possession and asks the configured authority to authenticate the account.
  5. The node stores the origin-scoped binding and replicates it to peers.
  6. The application confirms a signed account read, then starts protected API requests.
  7. Protected fetch requests are signed, verified and forwarded with trusted account identity.
  8. Signed logout removes the binding and propagates revocation. The browser can then rotate its identity.

Request handling

Protected requests with missing, expired, replayed or invalid proof receive HTTP 401. Login and logout return an explicit JSON ok result, which the application must check. The status endpoint is a UUID lookup for the interface, not a substitute for proof on protected requests.

The login shell and supported bootstrap/static assets remain public so a new browser can initialize. Native navigation and forms are separate from the packaged API client. Keep private data behind protected API routes, restrict backend access to trusted nodes, and enforce account status and permissions in application middleware.

Identity signing and automatic delta navigation are separate capabilities. Cross-origin identity access requires explicit federation configuration. Logout propagation across nodes and federated recipients is asynchronous.

For browser applications, use the packaged session controller to serialize sign-in and logout, restore sessions, and retry federated reads. Confirm account validity with the issuer before treating a recipient rejection as an expired session.

Configuring Gated Identity · Authentication & Signing · Authentication & Signing

Need a hand with your deployment?Contact support ↗Back to top ↑