rust-sdk/docs
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
..
CONTRIBUTE.MD fix(docs): update CONTRIBUTE.MD (#579) 2025-12-10 09:33:22 +08:00
DEVCONTAINER.md Adopt Devcontainer for Development Environment (#81) 2025-04-02 12:16:49 +08:00
OAUTH_SUPPORT.md chore: refactor OAuth client authorization api (#1009) 2026-07-23 14:13:11 -04:00