Commit bfd43d3
committed
fix(extensibility): use ConsumptionLevel for UMS destination lookup
The UMS transport passed Level.SUB_ACCOUNT to get_destination(), which
appends '@SUB_ACCOUNT' to the URL path. The Destination Service V2 API
rejects this with HTTP 400 because it expects lowercase level hints.
Use ConsumptionLevel.PROVIDER_SUBACCOUNT instead, which resolves to
'@provider_subaccount' — the correct value for provider-scoped
destinations like the UMS mTLS destination.1 parent eb61137 commit bfd43d3
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
| |||
0 commit comments