GNAP AS-RS

Demo · format-valid IANA · permanent

/.well-known/gnap-as-rs

Standard: RFC 9767 (GNAP)

Grant Negotiation and Authorization Protocol — the AS/RS trust-relationship endpoint.

What it is

GNAP is the modern rethink of OAuth. RFC 9767 defines how an authorization server (AS) and resource server (RS) establish trust; the AS publishes its GNAP endpoints at /.well-known/gnap-as-rs so RSs can discover them.

The threat it addresses

OAuth's token-exchange between AS and RS has been extended repeatedly; GNAP builds in a cleaner model. The well-known URI gives RSs a standard place to find the AS's endpoints and key material.

How it works

  • The AS publishes /.well-known/gnap-as-rs describing its token endpoint and signing keys.
  • Resource servers use it to validate tokens issued under GNAP.

Try it

Live demo

Demo — format-valid GNAP AS metadata (RFC 9767); no GNAP endpoints run here

Content-Type: application/json; charset=utf-8
{
  "issuer": "https://well-known.page",
  "authorization_endpoint": "https://well-known.page/demo/gnap/authorize",
  "token_endpoint": "https://well-known.page/demo/gnap/token",
  "grant_request_endpoint": "https://well-known.page/demo/gnap/grant-request",
  "_demo_note": "Illustrative GNAP authorization-server metadata (RFC 9767) for well-known.page. No GNAP endpoints actually run here."
}