OIDC Dynamic Client Registration

Demo · format-valid de-facto

/.well-known/oidc-registration

Standard: OpenID Connect Dynamic Client Registration 1.0

The POST endpoint where OAuth/OIDC clients register themselves at runtime and get a client_id.

What it is

Dynamic client registration lets an application register itself with an authorization server at runtime: it POSTs its metadata (redirect URIs, grant types) and receives a client_id and secret. The endpoint URL is advertised in the discovery document; /.well-known/oidc-registration is the widely-used conventional path for it.

The threat it addresses

Hardcoding client credentials per deployment is a maintenance and security burden (every environment needs new secrets, and secrets leak into repos). Runtime registration keeps credentials ephemeral and scoped.

How it works

  • The client POSTs a JSON metadata object (redirect_uris, token_endpoint_auth_method, ...) to the registration endpoint.
  • The AS validates it, assigns a client_id (and optionally a secret), and returns the full client registration response.
  • RFC 8414 metadata advertises the endpoint via registration_endpoint; this demo also serves the conventional /.well-known/oidc-registration path.

Honesty notes

  • Demo: registrations are accepted and returned but are not persisted, and the issued credentials work nowhere — the token endpoint is itself a demo.
  • Note: this path is not in the IANA registry; it is the de-facto conventional location, while the standardized mechanism is the registration_endpoint advertised in discovery metadata.

Try it

Live demo

Working demo POST endpoint — accepts registrations, issues unusable demo credentials

Content-Type: application/json; charset=utf-8
{
  "client_id": "2ec2b2e1-f397-4781-81f1-7292c225a1c9",
  "client_secret": "demo-7006719296bb4e81a691f454bb494f59",
  "client_id_issued_at": 1795979480,
  "client_secret_expires_at": 0,
  "redirect_uris": [
    "https://client.example.com/callback"
  ],
  "token_endpoint_auth_method": "client_secret_basic",
  "grant_types": [
    "authorization_code"
  ],
  "response_types": [
    "code"
  ],
  "client_name": "demo-client",
  "_demo_note": "Demo OIDC dynamic client registration on well-known.page. The issued client_id/secret are not usable anywhere — no token endpoint exists."
}