Commit edb07f7
authored
Add support for impersonation (#599)
* Add support for impersonation
* Add docs for impersonation
* Add unit tests for impersonation
* Acquire RT without impersonated user if possible
This is an optimization saving a few bytes over the wire.
When there is an explicit database configured for a session, there is no need
to send the impersonated user along with the `ROUTE` request. The only
difference this would make is that insufficient permissions would be noticed
when fetching the RT instead of when performing any actual action on the
session. Since routing is part of the global driver/pool operations and not
coupled to sessions, doing it this way seems like the logical conclusion.
* Only prefer initial router if RT got initialized w/o writers
Previously, the driver would prefer the initial router for fetching a new RT
whenever the current RT had no writers (left). However, if should check what
the RT looked like when it was received.1 parent 755b30d commit edb07f7
File tree
17 files changed
+454
-144
lines changed- docs/source
- neo4j
- io
- work
- testkitbackend
- tests
- integration
- unit
- io
- work
17 files changed
+454
-144
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
490 | 495 | | |
491 | 496 | | |
492 | 497 | | |
| |||
499 | 504 | | |
500 | 505 | | |
501 | 506 | | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
502 | 542 | | |
503 | 543 | | |
504 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
337 | 335 | | |
338 | 336 | | |
339 | 337 | | |
| |||
447 | 445 | | |
448 | 446 | | |
449 | 447 | | |
| 448 | + | |
450 | 449 | | |
451 | 450 | | |
452 | 451 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
286 | 290 | | |
287 | 291 | | |
288 | 292 | | |
| |||
0 commit comments