ProjectAuthConfig
Bring-your-own-JWT verification. When present, the realtime edge verifies end-user tokens signed by this issuer against its JWKS, and the environment stops accepting Portal-minted tokens entirely — the block is a switch, not an addition. Accepted signing algorithms are RS256, RS512, and ES256 (RSA moduli must be at least 2048 bits); symmetric algorithms cannot be used, since Portal never holds the signing key. Tokens must carry exp. Clients must also present their publishable key (pk_) on the connection, as that is what identifies which environment's issuer to verify against.
- claimType: object
Map requiredProperties: 1Maps claim paths in your token (dot-notation, e.g.
public_metadata.role) onto Portal identity fields.userIdis REQUIRED and becomes the Portal user id; the optionalanonmarks the session anonymous when its claim is explicitly true; every other entry becomes a session claim of the same name, readable fromctx.claimsinauthzand middleware. - issuerType: stringrequired
The expected
issclaim. Tokens from any other issuer are refused. - jwksType: stringFormat: uri
Url requiredThe issuer's JSON Web Key Set. Must use
httpsand resolve to a public host — private, internal, and loopback addresses are rejected at deploy time, and unlike the webhook URL there is nolocalhostexception, because the edge fetches this from Portal's own egress. Cached for ten minutes, refetched on an unrecognisedkidso key rotation needs no deploy.