Skip to main content
Place a sign-in declaration in the app tree and deploy its reviewed lock. Import issuer.authkit, issuer.clerk, issuer.oidc or issuer.jwt from @bijectionhq/bijection.
bijection/app.ts
The lock records the tree path, issuer kind, literal trust flags and scope. A declaration carries no identity value (url, audience, clientId, jwks, algorithm, sourceId): one written in code refuses IssuerValueInCode. An installation’s values are carried by trust grants: rows of sys.grants that carry attest for the issuer, issued by the identity admin, whose grant the installation’s creator holds:
A value that decides who may sign in changes only through an audited authority act, never through a deploy or bijection env set. A trust names the claims it accepts; a claim is trusted only when both the declaration and the trust name it. A declaration such as issuer.oidc({ tenant: true }) defines a tenant issuer shape. An administrator role declares attest: [shape] and issue: true. The mutation declares calls: [issuer.tenantTrust.issue] and issues the trust with ctx.call(issuer.tenantTrust.issue, { shape, member, values }), where shape is the issuer’s tree path and member is the exact member tag. The call returns the grant id. To revoke it, declare calls: [issuer.tenantTrust.revoke] and call that export with { shape, member, grant }. Revocation ends every identity binding and session issued under the trust. Every issue and revocation appends a sys.grantTransitions entry.