- Notifications
You must be signed in to change notification settings - Fork927
Commitff83df4
committed
feat(oauth2): implement RFC 6750 Bearer Token Support for MCP compliance
- Add RFC 6750 bearer token extraction to APITokenFromRequest as fallback methods- Support Authorization: Bearer <token> header and access_token query parameter- Maintain backward compatibility by prioritizing existing custom methods first- Add WWW-Authenticate headers to 401/403 responses per RFC 6750- Update Protected Resource Metadata to advertise bearer_methods_supported- Add comprehensive test suite for RFC 6750 compliance in rfc6750_test.go- Update MCP test scripts with bearer token authentication tests- Enhance CLAUDE.md with improved Go LSP tool usage guidelinesImplements RFC 6750 Section 2.1 (Authorization Request Header Field) and 2.3 (URI Query Parameter).Maintains full backward compatibility with existing Coder authentication methods.Completes major MCP OAuth2 compliance milestone.Change-Id: Ic9c9057153b40728ad91b377d753a7ffd566add7Signed-off-by: Thomas Kosiewski <tk@coder.com>1 parent5898895 commitff83df4
File tree
6 files changed
+981
-7
lines changed- coderd
- httpmw
- scripts/oauth2
6 files changed
+981
-7
lines changedLines changed: 36 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
212 | 231 |
| |
213 | 232 |
| |
214 | 233 |
| |
| |||
534 | 553 |
| |
535 | 554 |
| |
536 | 555 |
| |
| 556 | + | |
| 557 | + | |
537 | 558 |
| |
538 | 559 |
| |
539 | 560 |
| |
| 561 | + | |
| 562 | + | |
| 563 | + | |
540 | 564 |
| |
541 | 565 |
| |
542 | 566 |
| |
| |||
552 | 576 |
| |
553 | 577 |
| |
554 | 578 |
| |
555 |
| - | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
556 | 591 |
| |
557 | 592 |
| |
558 | 593 |
| |
|
0 commit comments
Comments
(0)