You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
register_client drops client_secret_expires_at from the registration response #1416
P2Medium: important but non-blocking improvementT-securitySecurity-related changesbugSomething is not workingready for workIssue is well-defined and ready to be picked up
AuthorizationManager::register_client parses the whole registration response, but only returns an OAuthClientConfig, which has no client_secret_expires_at. So a client that stores its registration can't tell when the secret lapses, even though RFC 7591 requires the field whenever a secret is issued. In maki we now register a new client on every login instead of reusing one that has a secret, since it might be dead.
Could OAuthClientConfig keep the expiry, or register_client return the full ClientRegistrationResponse? Happy to do a PR for either
Took the first option in #1478 — OAuthClientConfig keeps client_secret_expires_at (seconds since epoch) instead of register_client returning the full response.
Reason: both OAuthClientConfig and ClientRegistrationResponse are #[non_exhaustive], so the added field is additive per VERSIONING.md, while changing register_client's return type is a public signature change. 0 (never expires) and a missing field both land as None, matching the existing empty-string client_secret rule, so Some is always a real deadline to schedule against.
Tests: cargo test -p rmcp --lib --features auth — 593 passed; the new test fails on left: None, right: Some(1767225600) when the mapping is reverted.
P2Medium: important but non-blocking improvementT-securitySecurity-related changesbugSomething is not workingready for workIssue is well-defined and ready to be picked up
Activity
github-actions commentedon Oct 30, 2026
@gocamille is on triage rotation this week and is the reviewer for this one.
Codex labeled this bug / P2 (T-security). Please confirm or correct those labels.
Automated triage. Labels are a first pass and the assigned maintainer has the final say.
fix(auth): keep client_secret_expires_at from DCR response
feat(transport): keep client_secret_expires_at from client registration
marcus-beauregard commentedon Nov 20, 2026
Took the first option in #1478 —
OAuthClientConfigkeepsclient_secret_expires_at(seconds since epoch) instead ofregister_clientreturning the full response.Reason: both
OAuthClientConfigandClientRegistrationResponseare#[non_exhaustive], so the added field is additive per VERSIONING.md, while changingregister_client's return type is a public signature change.0(never expires) and a missing field both land asNone, matching the existing empty-stringclient_secretrule, soSomeis always a real deadline to schedule against.Tests:
cargo test -p rmcp --lib --features auth— 593 passed; the new test fails onleft: None, right: Some(1767225600)when the mapping is reverted.