# Inspect and validate an ID-JAG token online

> ID-JAG token inspector that checks an Identity Assertion JWT Authorization Grant against the IETF draft in your browser and builds the curl requests for you.

- URL: https://iamops.dev/tools/id-jag/
- Markdown: https://iamops.dev/tools/id-jag.md
- Language: en
- Runs in your browser, nothing is uploaded.

Paste an Identity Assertion JWT Authorization Grant. I check it claim by claim against the IETF draft and write the two requests for you.

## What can I paste here

An Identity Assertion JWT Authorization Grant, in compact JWT form. You can also paste the issuer metadata URL to fill the token endpoints.

## What it does

- It checks typ, the required claims, the audience rules and the lifetime against draft-ietf-oauth-identity-assertion-authz-grant-06.
- Every claim is explained next to its value, with REQUIRED, RECOMMENDED or OPTIONAL as the draft states it.
- You get the token exchange request for the IdP and the jwt-bearer request for the resource authorization server as curl, secrets left as placeholders.

## Example use

Paste an ID-JAG from a test token exchange and read which claims pass or fail, then copy the two follow-up requests.

## How to read the result

- typ must be oauth-id-jag+jwt. If you see JWT or at+jwt, you are looking at a different kind of token.
- aud is the issuer of the resource authorization server, as a string or an array with exactly one entry. The resource authorization server rejects the grant if it does not match its own issuer.
- client_id is the client at the resource authorization server. It can differ from the client that asked the IdP. The resource authorization server compares it with the client that authenticates.
- resource and scope are what the grant covers. The resource authorization server may grant less, never more.

## What it does not do

- It is a draft, not an RFC. Claim names and rules can still change. The page names the revision it follows.
- It cannot know your policy: trusted issuers, client mapping and tenant rules are for your resource authorization server to enforce.
- The curl commands use placeholders for secrets and endpoints. I never put the token you pasted into them.

## Questions people ask

### What can I paste here

An Identity Assertion JWT Authorization Grant, in compact JWT form. You can also paste the issuer metadata URL to fill the token endpoints.

### What is an ID-JAG?

An Identity Assertion JWT Authorization Grant is a short lived JWT that an identity provider issues through token exchange. A resource server accepts it as a JWT bearer grant. It is the basis of Cross App Access for agents.

### Which version of the draft does the inspector follow?

It follows draft-ietf-oauth-identity-assertion-authz-grant-06. Rules can change between drafts, so check the draft before you rely on a result.

## Related

- [Certificate decoder](https://iamops.dev/tools/certificate-decoder.md): Decode an X.509 certificate, chain or CSR and read SANs, expiry, key size, fingerprints and chain order. Paste PEM, base64 DER or hex. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/certificate-decoder/)
- [SAML decoder and verifier](https://iamops.dev/tools/saml.md): Decode a SAMLRequest or SAMLResponse, check the XML signature and decrypt an EncryptedAssertion. Paste base64, raw XML or a redirect URL. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/saml/)
- [JWT decoder and verifier](https://iamops.dev/tools/jwt.md): Decode a JSON Web Token, show claims and expiry as dates, and verify the signature. Paste a compact JWT, then an HMAC secret, PEM key, JWK or JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/jwt/)
- [DPoP proof builder and checker](https://iamops.dev/tools/dpop.md): Build a DPoP proof with a fresh ES256 key, or check typ, htm, htu, iat, ath, nonce and the cnf.jkt thumbprint. Paste a DPoP JWT and the method and URL. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/dpop/)
- [PKCE generator](https://iamops.dev/tools/pkce.md): Generate a PKCE code verifier and S256 challenge, or check that a pair matches, with authorize and token snippets. Paste a verifier and optional challenge, or generate them here. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/pkce/)
- [OIDC discovery and JWKS viewer](https://iamops.dev/tools/oidc-discovery.md): Read an OpenID Provider discovery document and JWKS, and flag missing PKCE, weak keys or risky grants. Type the issuer, or paste the JSON if CORS blocks the fetch. Runs in your browser. Nothing is uploaded to this site; the fetch goes from your browser to the issuer. (https://iamops.dev/tools/oidc-discovery/)
- [Encoder and decoder](https://iamops.dev/tools/encoder-decoder.md): Encode or decode Base64, URL, hex, HTML entities, Unicode, gzip, deflate and the SAML redirect chain, with auto-detect. Paste the text. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/encoder-decoder/)
- [HAR inspector](https://iamops.dev/tools/har-inspector.md): Inspect a HAR file: filter requests, follow the OAuth or SAML flow, decode JWTs, and copy as curl with secrets redacted. Drop a HAR export from DevTools. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/har-inspector/)
- [HTTP client](https://iamops.dev/tools/http-client.md): Call an API from your browser with Basic, Bearer, an API key, or OAuth 2.0 (client credentials, authorization code with PKCE, device code, refresh, token exchange) and optional DPoP. Enter the URL and auth details, or paste a curl command, HAR or OpenAPI definition. The request goes from your browser, not through this site. If CORS blocks the call, the page offers curl instead. (https://iamops.dev/tools/http-client/)
- [SD-JWT and VC decoder](https://iamops.dev/tools/sd-jwt.md): Decode an SD-JWT or SD-JWT VC: split disclosures, recompute digests against _sd, and check the Key Binding JWT. Paste the compact string with ~ separators, and optionally the issuer JWK. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/sd-jwt/)
- [Passkey and WebAuthn decoder](https://iamops.dev/tools/webauthn.md): Decode a WebAuthn or passkey response: attestationObject, clientDataJSON and authenticator data, including flags, AAGUID, sign count and the COSE public key. Paste the credential JSON or the individual fields. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/webauthn/)
- [MCP auth discovery checker](https://iamops.dev/tools/mcp-auth.md): Check MCP authorization discovery: Protected Resource Metadata (RFC 9728) and the authorization server metadata, and flag missing PKCE S256, CIMD/DCR or resource indicators. Enter the server URL, or paste the JSON if CORS blocks the fetch. Requests go from your browser, nothing is uploaded to this site. (https://iamops.dev/tools/mcp-auth/)
- [Shared Signals SET decoder](https://iamops.dev/tools/shared-signals.md): Decode a Shared Signals Security Event Token (CAEP or RISC), explain the event type and the sub_id formats, and optionally verify the signature. Paste the SET JWT and optionally the transmitter JWKS. Runs in your browser, nothing is uploaded. (https://iamops.dev/tools/shared-signals/)
