Skip to content

feat(auth): add CLIENT_REGISTRATION_TTL=0 never-expire opt-in#38

Merged
babs merged 1 commit into
masterfrom
feat/client-registration-never-expire
Jun 18, 2026
Merged

feat(auth): add CLIENT_REGISTRATION_TTL=0 never-expire opt-in#38
babs merged 1 commit into
masterfrom
feat/client-registration-never-expire

Conversation

@babs

@babs babs commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Sealed client_id expiry (default 7d) permanently breaks MCP clients that never re-run dynamic client registration on invalid_client (e.g. Azure APIM connectors), which loop on the 400 indefinitely. Setting CLIENT_REGISTRATION_TTL=0 disables expiry (emits client_id_expires_at=0) as an opt-in escape hatch; the default and the 90d cap are unchanged.

Also surface client_id validation rejections at /authorize and /token via mcp_auth_access_denied_total{reason} and access_denied_* WARN logs, so a stuck client is visible beyond raw 4xx access logs.

Sealed client_id expiry (default 7d) permanently breaks MCP clients
that never re-run dynamic client registration on invalid_client (e.g.
Azure APIM connectors), which loop on the 400 indefinitely. Setting
CLIENT_REGISTRATION_TTL=0 disables expiry (emits client_id_expires_at=0)
as an opt-in escape hatch; the default and the 90d cap are unchanged.

Also surface client_id validation rejections at /authorize and /token
via mcp_auth_access_denied_total{reason} and access_denied_* WARN logs,
so a stuck client is visible beyond raw 4xx access logs.
@babs babs merged commit e2474a6 into master Jun 18, 2026
7 checks passed
@babs babs deleted the feat/client-registration-never-expire branch June 18, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant