DCR ignores advertised token endpoint authentication methods
Maintainer thường phản hồi trong vòng 2 ngày
@bolinfest đang làm issue này rồi.
Từ ngày 14/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
AuthorizationManager::register_client currently always sends
token_endpoint_auth_method: "none". An authorization server can advertise
token_endpoint_auth_methods_supported, including
client_secret_basic or client_secret_post, but dynamic registration does
not currently use that metadata.
This prevents registration against servers that require a confidential client
authentication method. It can also register a confidential method without
checking that the registration response supplied the secret needed to use it.
Proposed direction
- Preserve the current public-client behavior when the metadata field is
omitted. - When the field is present, choose the first SDK-supported method in this
preference order:none,client_secret_basic, then
client_secret_post. - Reject a malformed, empty, or unsupported advertised method list before
sending a registration request. - If a confidential method is selected, require a non-empty client secret in
the registration response. - Continue using the existing OAuth client configuration for Basic and POST
authentication after registration.
The preference for none preserves a public client when the server supports
one; Basic is preferred over putting a secret in the request body when a
confidential client is required.
Planned validation
Focused recording-client tests would cover omitted metadata, each supported
method, mixed-method preference, malformed/empty/unsupported metadata, and
missing or empty confidential-client secrets. The rejection cases would also
verify whether a registration request was sent.
Would this selection and compatibility policy be acceptable for a focused PR?
- Ngôn ngữ chính
- Rust
- Star
- 4k
- Fork
- 662
- Merge trung bình
- 3 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 30
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của modelcontextprotocol/rust-sdk
-
Streamable HTTP client: a 401 or 403 with a JSON-RPC error body and no WWW-Authenticate loses its HTTP statusCó thể đã có người làm @aton-of-data đã nhận 5 ngày trước. Đang mởbug P2 ready for work T-security T-transport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
modelcontextprotocol/rust-sdk#1339 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
auth: refresh_token() requests offline_access that was never granted, so refreshes fail with invalid_scopeCó thể đã có người làm @jstar0 đã nhận 7 ngày trước. Đang mởbug P1 ready for work T-security T-transport
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
modelcontextprotocol/rust-sdk#1330 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
P3 question Stale T-documentation T-enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
modelcontextprotocol/rust-sdk#1155 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Expose OAuth discovery and registration results for application-owned flowsCó thể đã có người làm @connor4312 đã nhận hôm nay. Đang mởenhancement P2 ready for work T-security
modelcontextprotocol/rust-sdk#1371 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Two rmcp tests fail on Windows: connection-refused text check and `npm` spawn in test_with_jsCó thể đã có người làm @bolinfest đã nhận 1 ngày trước. Đang mởbug P2 ready for work T-test
modelcontextprotocol/rust-sdk#1364 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của modelcontextprotocol/rust-sdk
Issue tương tự
-
area: compat area: parsing bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
reubeno/brush#1526 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OFN writer emits `DocIRI` as a bare IRI, which becomes a version IRI or a parse error on re-readĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
phillord/horned-owl#338 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
stackabletech/operator-rs#1301 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
jmcnamara/rust_xlsxwriter#205 · 4 bình luận ·