go-sdk/oauthex
Repository files (latest commit first)
Filename Latest commit message Latest commit date
MatyasVondraOutreach 76d5a54125
oauthex: accept 200 in client registration (#877)
## Summary

Accepts HTTP 200 as a valid response in Dynamic Client Registration
(DCR), in addition to 201. Some authorization servers return 200 instead
of the RFC-specified 201 on successful registration.

Fixes https://github.com/modelcontextprotocol/go-sdk/issues/876

## Changes

- `oauthex/dcr.go`: accept 200 status code in client registration
response
- `oauthex/dcr_test.go`: add test coverage for the 200 response case
2026-04-01 16:51:18 +02:00
..
testdata oauthex: move internal/oauthex to oauthex (#559) 2025-10-07 08:39:49 -04:00
auth_meta.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
auth_meta_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
client.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
dcr.go oauthex: accept 200 in client registration (#877) 2026-04-01 16:51:18 +02:00
dcr_test.go oauthex: accept 200 in client registration (#877) 2026-04-01 16:51:18 +02:00
oauth2.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
oauthex.go all: client side OAuth support (#785) 2026-02-27 15:30:13 +01:00
oauthex_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
resource_meta.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
resource_meta_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
token_exchange.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
token_exchange_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00
url_scheme_test.go all: stabilize client OAuth support (#861) 2026-03-31 12:36:31 +02:00