Commit 27abc5c
committed
Address cursor review: raise on unsupported endpoint, refresh session token per-request
- transform_request_to_oci now raises ValueError for endpoints other than
'embed' and 'chat' instead of silently returning the untransformed body
- Session token auth uses a refreshing wrapper that re-reads the token file
before each signing call, so OCI CLI token refreshes are picked up without
restarting the client
- Add test_unsupported_endpoint_raises to cover the new explicit error
- Update test_session_auth_prefers_security_token_signer to expect multi-call
behaviour from the refreshing signer1 parent 2ac5ec4 commit 27abc5c
2 files changed
Lines changed: 49 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
408 | 405 | | |
409 | 406 | | |
410 | 407 | | |
411 | 408 | | |
412 | 409 | | |
413 | 410 | | |
| 411 | + | |
414 | 412 | | |
415 | 413 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
420 | 442 | | |
421 | 443 | | |
422 | 444 | | |
| |||
814 | 836 | | |
815 | 837 | | |
816 | 838 | | |
817 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
818 | 843 | | |
819 | 844 | | |
820 | 845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
737 | 737 | | |
738 | 738 | | |
739 | 739 | | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
740 | 749 | | |
741 | 750 | | |
742 | 751 | | |
| |||
930 | 939 | | |
931 | 940 | | |
932 | 941 | | |
933 | | - | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
934 | 945 | | |
935 | 946 | | |
936 | 947 | | |
| 948 | + | |
937 | 949 | | |
938 | 950 | | |
939 | 951 | | |
| |||
0 commit comments