rust-sdk/examples/clients/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jack Amadeo e903341136
chore: refactor OAuth client authorization api (#1009)
* refactor!: refactor OAuth client authorization api

`OAuthState::start_authorization` now accepts a declarative `AuthorizationRequest`
describing the client's available identity material and selects the highest-priority
mechanism the server supports: pre-registered client information → Client ID
Metadata Documents (SEP-991) → Dynamic Client Registration.

This replaces the three mechanism-specific entry points (`start_authorization`,
`start_authorization_with_metadata_url`, `start_authorization_with_preregistered_client`),
where callers previously had to know which mechanism to pick. `AuthorizationSession::new`
is consolidated the same way, and the failure-recovery pattern from #994 (returning the
manager alongside the error so `OAuthState` recovers to `Unauthorized` on transient failures)
is now applied across all registration paths. Includes new `RecordingOAuthHttpClient`-based
tests covering the priority matrix and recovery semantics, plus updated docs, examples, and
conformance client.

* fix: dcr registration uses requested application type

* fix: error for invalid combination
2026-07-23 14:13:11 -04:00
..
auth chore: refactor OAuth client authorization api (#1009) 2026-07-23 14:13:11 -04:00
collection.rs chore: add #[non_exhaustive] and mutation methods to improve compatibility (#715) 2026-03-03 10:38:01 -05:00
everything_stdio.rs fix: example clients_everything_stdio (#770) 2026-04-01 19:02:31 -04:00
git_stdio.rs chore: add #[non_exhaustive] and mutation methods to improve compatibility (#715) 2026-03-03 10:38:01 -05:00
progress_client.rs chore: add #[non_exhaustive] and mutation methods to improve compatibility (#715) 2026-03-03 10:38:01 -05:00
sampling_stdio.rs fix: api ergonomics follow-up (#720) 2026-03-03 12:05:32 -05:00
streamable_http.rs chore: add #[non_exhaustive] and mutation methods to improve compatibility (#715) 2026-03-03 10:38:01 -05:00
subscriptions_streamhttp.rs feat: add subscription listen streams (SEP-2575) (#1000) 2026-07-21 09:53:04 -04:00
task_stdio.rs feat: Implement SEP-2663 Tasks Extension (#1020) 2026-07-22 14:16:52 -04:00