Skip to content

oauthex: accept 200 in client registration#877

Merged
maciej-kisiel merged 1 commit intomodelcontextprotocol:mainfrom
MatyasVondraOutreach:MatyasVondraOutreach/feature/accept-200-in-dcr
Apr 1, 2026
Merged

oauthex: accept 200 in client registration#877
maciej-kisiel merged 1 commit intomodelcontextprotocol:mainfrom
MatyasVondraOutreach:MatyasVondraOutreach/feature/accept-200-in-dcr

Conversation

@MatyasVondraOutreach
Copy link
Copy Markdown
Contributor

@MatyasVondraOutreach MatyasVondraOutreach commented Apr 1, 2026

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 #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

@maciej-kisiel maciej-kisiel merged commit 76d5a54 into modelcontextprotocol:main Apr 1, 2026
9 checks passed
@MatyasVondraOutreach MatyasVondraOutreach deleted the MatyasVondraOutreach/feature/accept-200-in-dcr branch April 1, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept 200 responses in oauthex.RegisterClient

2 participants