Interface AttestationGrant

interface AttestationGrant {
    audiences?: string[];
    scopes: string[];
    maxSessionTtl: number;
    subNamePatterns?: string[];
}

Properties

audiences?: string[]

Audiences the subject may create sessions for. undefined = unrestricted; [] = deny all (fail-closed).

scopes: string[]

Exact scope strings the subject may request. Wildcards are NOT supported here — only subNamePatterns supports wildcards.

maxSessionTtl: number

Maximum session TTL (seconds) the subject may create. Must be a finite positive number.

subNamePatterns?: string[]

Permitted child (SubHandle) names. Only meaningful on Identity→Handle attestations. Each pattern is either an exact name or ends with a single trailing * (prefix match); a lone * matches everything. Patterns like a*b are rejected at issue time.