Skip to main content

JWTs and JWKS

AIGW exposes two distinct issuer/key contexts. This distinction is one of the most important implementation details in the supplied environment.

1. Agent-facing AIGW tokens​

The per-resource discovery document reports the global/core issuer and core JWKSJWKSJSON Web Key Set: a published set of public keys used to verify JWT signatures.. AIGW access tokensAIGW access tokenThe token an agent receives after the user authorizes it. It says which user approved which agent for which scopes. issued to agents come from this core context.

Issuer: https://core.api.aigw.eval.loginid.ai/
JWKS: https://core.api.aigw.eval.loginid.ai/.well-known/jwks.json

The supplied notes observed core-issued JWTs using RS256.

2. Merchant-facing Resource assertions​

AIGW signs user assertions and client assertions with the ResourceResourceThe downstream system registered in a Project. Its kind (Token exchange or OAuth client) decides the role AIGW plays.'s ES256 key.

Issuer: https://api.aigw.eval.loginid.ai/<RESOURCE_ID>
JWKS: https://api.aigw.eval.loginid.ai/<RESOURCE_ID>/.well-known/jwks.json
Alg: ES256

These are the values the merchant authorization server trusts.

User assertion claims​

ClaimValue
issper-resource AIGW issuer
subexternal reference candidate
audconfigured merchant issuer URL
iat / expassertion validity window
jtiunique ID

Client assertion claims​

ClaimValue
issmerchant-AS client ID
submerchant-AS client ID
audconfigured merchant issuer URL
iat / expsame configured assertion lifetime
jtiunique ID

Rotation​

Resource JWKS can contain older, non-active keys as well as the active key. Merchant verifiers should select by kid and refresh JWKS when encountering an unknown key.