Commit 901aa53
fix(server): BearerTokenAuthMiddleware now populates ctx.auth_info for bearer flows (#579)
* fix(server): auth_context_factory populates adcp.auth_info for bearer flows
Closes #576 (partial — handler.py pop follows in next commit)
https://claude.ai/code/session_01R254Wmibw6fxiDDTvhuw9b
* fix(server): pop adcp.auth_info from tool_ctx.metadata after extraction
_build_ctx now pops metadata["adcp.auth_info"] after calling
_extract_auth_info, preventing the AuthInfo object from surviving into
RequestContext.metadata where it would be opaque to downstream
serializers. Mirrors the existing adcp.buyer_agent pop pattern.
https://claude.ai/code/session_01R254Wmibw6fxiDDTvhuw9b
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent c2ab696 commit 901aa53
3 files changed
Lines changed: 72 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
961 | 961 | | |
962 | 962 | | |
963 | 963 | | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
964 | 969 | | |
965 | 970 | | |
966 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
403 | 417 | | |
| 418 | + | |
404 | 419 | | |
405 | 420 | | |
406 | 421 | | |
407 | 422 | | |
408 | 423 | | |
409 | 424 | | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
410 | 438 | | |
411 | 439 | | |
412 | | - | |
| 440 | + | |
413 | 441 | | |
414 | 442 | | |
415 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
565 | 603 | | |
566 | 604 | | |
567 | 605 | | |
| |||
0 commit comments