Skip to Content

Register a Client

Dynamic registration and client ID metadata documents.

Both ways are open by default, and neither grants library access. Administrators can turn both off with Open OAuth client registration in Settings → Admin → Features (allowOAuthClientRegistration in a runtime seed). That stops new clients; it does not disconnect existing apps.

Dynamic registrationClient ID metadata document
Client IDIssued by the instanceThe document's own HTTPS URL, up to 512 characters
Shown to users asUnverified appVerified as the document's domain
LogoNeverYes

Register dynamically

POST JSON to the discovered registration_endpoint, with the discovered resource in place of the example:

Native public client
{
  "client_name": "My reader tool",
  "application_type": "native",
  "redirect_uris": ["http://127.0.0.1:43210/callback"],
  "token_endpoint_auth_method": "none",
  "grant_types": ["authorization_code", "refresh_token", "urn:ietf:params:oauth:grant-type:device_code"],
  "response_types": ["code"],
  "scope": "documents:read offline_access",
  "resources": ["https://reader.example/api/v1"]
}
  • Register the exact redirect URI, including the port and path. Native clients can use loopback HTTP; web clients use HTTPS.
  • Public clients must not invent a client secret. Confidential clients use their registered authentication method and keep their secret out of browsers and source control.
  • A client that no user has approved is removed 30 days after it registers.
  • There is no separate client-management API.

Use a metadata document

Use the document's HTTPS URL as your client_id. OpenReader fetches it when the client first connects, and the authorization server metadata reports client_id_metadata_document_supported.

logo_uri must be an HTTPS PNG, JPEG or WebP of at most 256 KB on the same origin as the client ID, including any redirects. OpenReader fetches it and serves it from its own domain. A logo that fails these checks shows a letter instead. Browsers keep it for a day.

What users see

Names are self-reported, so consent and Connected apps show the domain and full client ID of a metadata document client, because a domain can host files for many people. The destination always includes the scheme, so http:// can't pass for https:// and myapp://callback can't pass for the site it names. The path is left out. Device approval has no redirect, so it shows no destination.

Limits

FieldLimit
Names200 characters
URLs2048 characters
redirect_uris20 entries

Larger values return invalid_client_metadata.

On this page

Edit this page