The document
Every server with a public address publishes it at/.well-known/mono-client.json – public, cached for an hour, CORS *:
client_idis the document’s own address.- A public client: no secret, every sign-in with PKCE (S256).
- One redirect URI for all systems of this server.
- No tenant, no person, no key.
When a server publishes it
Even with a document, Mono uses the address as client ID only while the check of “Custom address” measures that exactly this server is reachable from the internet (at most five minutes old). There is no second fetch of its own document.
The order at sign-in
1
Stored client ID
If the system already has a client ID (for example from the tenant’s app), Mono uses it.
2
Client document
If your authorization server says
client_id_metadata_document_supported: true in its metadata (or the known system names cimd) and the document is reachable, Mono signs the person in with it. Nothing is registered.3
Dynamic registration
Otherwise Mono registers itself as a public client (RFC 7591).
4
The tenant's app
If neither works, Mono names the way through the tenant’s own app, with the reason
auth.cimd_unreachable (document accepted but not reachable) or auth.no_dcr (no registration).What your authorization server needs
client_id_metadata_document_supported: truein its metadata (RFC 8414).- It fetches the document over https from the address in
client_idand checks that the request’sredirect_uriis listed inredirect_uris. - PKCE with S256 and the
resourceparameter on every grant.
The sign-in always runs for the person who signs in: tokens are kept in the key store under their name, and every call runs with their own token. More in Connect a system to Mono by its address.