Hi Sean, > 1. `client_id` must equal the document's `client_id`, exactly. The draft says > the document's `client_id` MUST match; we would suggest saying "byte-for-byte > equal, no normalisation".
We explicitly say "comparisons MUST be made using simple string comparison as defined in Section 6.2.1 of [RFC3986]", further "The client SHOULD normalize its Client Identifier URL as described in Sections 6.2.2 and 6.2.3 of [RFC3986], as the Authorization Server MUST NOT normalize Client Identifier URLs when performing comparison." So I think this should already be clear enough? 2. Why is your AS the one issuing Client Identifier URIs on its domain? Why is the Authorization Server acting as a client here? 3. yes, which is why we have security considerations for fetching Client Identifier URIs, which includes SSRF as a potential attack vector. I'm not sure the question you're raising here? 4. clamping the cache max-age between a minimum and a maximum is definitely something an AS can do, debatable as to if a minimum cache time should be in the internet draft or not, would encourage opening an issue to discuss. 5. An AS can indeed restrict the available client authentication methods available for use; we do have this in the new Client Authentication section "An authorization server MAY restrict the supported methods of client authentication based on its own policies, and SHOULD advertise the supported methods of client authentication in the authorization server metadata" 6. That native redirect is technically incorrect, should be xchk:/oauth/callback, but I'd probably recommend using app-claimed URIs. Given you're doing a native app, then yes, it'd make sense to use RFC 8252. 7. If the client requests different scopes to that which the authorization server wishes to grant, then the authorization server should return the changed scopes in the token response, per RFC 6749; the AS does not *have to* honour the scopes requested, but it should certainly read them to ensure it's not issuing more scopes than that which the client requested. Hope this helps and clarifies things. Yours, Emelia Smith > On 16. Nov 2026, at 22:55, Sean MacGuire <[email protected]> wrote: > > > Hello list, long-time lurker, first-time caller. > > We run an OAuth 2.1 authorization server (in.xchk.io, with a second instance > at xchk.me) whose clients are mostly ones we have no prior relationship with: > MCP clients (Claude, Claude Code, Cursor, VS Code and the like) and our own > native phone app. Client ID Metadata Documents are the registration path we > prefer; RFC 7591 dynamic registration is kept for older clients. The AS > advertises `client_id_metadata_document_supported: true` in its RFC 8414 > metadata. One native app (iOS and Android) and one MCP client (Claude Code) > have completed the full flow against it. > > I'd classify the following observations as "niggly" (that's the technical > term), but they may be useful to someone. > > 1. `client_id` must equal the document's `client_id`, exactly. The draft says > the document's `client_id` MUST match; we would suggest saying "byte-for-byte > equal, no normalisation". > > 2. One app, one document per authorization server host. Because the > `client_id` is the document's own URL, a native app that talks to two > authorization servers under different hosts has two `client_id`s, and the > document has to be published where each AS can fetch it. We ended up hosting > one document per registry host > (`https://<as-host>/app/<as-host>/oauth-client-ios.json`) and the app picks > the document that matches the AS it is talking to. This is a consequence of > the design, not a defect, but it is not obvious from the text that a > multi-tenant or multi-region deployment needs a document per issuer; a > sentence would save implementers a surprise. > > 3. Fetching the document is a server-side request to an attacker-chosen URL. > The security considerations might list what we found necessary: resolve the > host first and refuse private, loopback and link-local addresses (DNS > rebinding is the obvious attack); refuse any redirect (`redirect: manual`, > 3xx is an error); cap the body (we use 64 KiB) and the time (5 s); require > HTTPS with a path beyond `/` and no fragment; send a fixed `Accept` and > `User-Agent`. None of these is novel, but a server that fetches whatever > `client_id` says is an SSRF primitive. > > 4. Caching. We honor the document's `Cache-Control: max-age` clamped to [60 > s, 3600 s], with `no-store` and `no-cache` treated as the minimum rather than > as "never cache", so a misbehaving client cannot make the AS fetch its > document on every request. A recommended clamp, or at least a note that the > AS should bound the cache both ways, could help. > > 5. Only public clients, for us. The draft allows a confidential client to > publish its JWKS in the document and authenticate with `private_key_jwt`. We > accept only `token_endpoint_auth_method: "none"` from a metadata document and > require PKCE (S256). The document proves control of a URL, not an org, so we > didn't want it to be the path by which a client gains a credential-bearing > registration. Other deployments will differ; the draft could say explicitly > that an AS MAY restrict metadata-document clients to public clients. > > 6. Native app redirects. The documents list custom-scheme redirect URIs > (`xchk://oauth/callback`) and we accept them under RFC 8252, with loopback > `http://` on any port per section 7.3, and `https://` otherwise. The draft > might note that `redirect_uris` in the document is where the AS learns a > native client's scheme, so the AS has to apply RFC 8252's rules to the > document's list, not only to what arrives on the authorization request. > > 7. Scopes are the AS's to grant, not the document's to claim. A > metadata-document client gets a fixed scope set from us (`openid profile > email offline_access` plus a resource-specific scope); a `scope` member in > the document is ignored. The document describes the client; it does not > negotiate its privileges. We think that is the right default, and the draft > could say so. > > Happy to answer any questions, even niggly ones. > > Sean MacGuire [email protected] > Key West +1 305 240.2984 > > _______________________________________________ > OAuth mailing list -- [email protected] > To unsubscribe send an email to [email protected]
_______________________________________________ OAuth mailing list -- [email protected] To unsubscribe send an email to [email protected]
