Repository navigation
Commit 5d5d80a
Azure: scoped delegation in the Share panel no longer fails with 503 (#182)
With org-scoped access on, every /api/delegations request failed at once
with 503 DatabaseUnavailable, even with the database online. mssql's
ConnectionPool deep-copies its config with rfdc, which copies only own
enumerable properties into plain objects, so the getToken that
ManagedIdentityCredential defines on its prototype was lost. tedious then
refused the copy: 'The "config.authentication.options.credential" property
must be an instance of the token credential class.' That isn't an error a
resuming database gives, so the store gave up on the first attempt.
SqlScopeStore now hands the driver an object with a getToken of its own
that calls the credential it uses, injected or the managed identity, and
that survives the copy.
The new test drives the real mssql and tedious with a credential whose
getToken is on its class's prototype. A connector that refuses keeps it
offline: no name lookup, no socket. It fails without the fix and passes
with it.
Co-authored-by: Keith Mcgrane <keithmcgrane@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 1af87db commit 5d5d80a
3 files changed
Lines changed: 56 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
316 | 356 | | |
0 commit comments