UNPKG

@vigilbase/cli

Version:

Vigilbase CLI — security scanners, agent tools, and Vigilbase One from the terminal.

14 lines (13 loc) • 542 B
/** * Validate grant binding from the trusted issuer's TLS response. One verifies signatures at its API boundary. * `resource` is the One resource the grant was requested for (One's origin, or the API resource); the token must * name it and nothing else but Identity's userinfo endpoint, so a token naming both One resources is refused. */ export declare function readIdentityTokenMetadata(token: string, binding: { issuer: string; clientId: string; resource: string; }): { organizationId: string; subject: string; };