Commit f1dd6a2
committed
Fix auth loss when querying backend capabilities
QueryCapabilities was manually creating BackendTarget but omitted
AuthStrategy and AuthMetadata fields, causing all backends to fall
back to unauthenticated strategy during capability queries.
Replace manual struct creation with BackendToTarget() helper to
ensure all fields (including auth) are properly copied from Backend
to BackendTarget.
This bug prevented per-backend authentication from working during
the initial capability discovery phase, even though auth was
correctly configured by the discoverer.1 parent dfa7ebe commit f1dd6a2
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 52 | + | |
| 53 | + | |
60 | 54 | | |
61 | 55 | | |
62 | 56 | | |
| |||
0 commit comments