Commit 23af716
committed
feat: add pre_authenticate option for authorization providers
- This makes pre-authentication an opt-in feature
- When True, authentication for the provider is triggered at WebSocket connection time before any user message is submitted.
- When False (default), authentication only occurs when the workflow explicitly requires it.
Signed-off-by: Patrick Chin <8509935+thepatrickchin@users.noreply.github.com>1 parent 9f99cdb commit 23af716
File tree
4 files changed
+19
-3
lines changed- examples/front_ends/simple_auth/src/nat_simple_auth/configs
- packages/nvidia_nat_core
- src/nat
- authentication/oauth2
- front_ends/fastapi/auth_flow_handlers
- tests/nat/front_ends/auth_flow_handlers
4 files changed
+19
-3
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
85 | | - | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
511 | 517 | | |
512 | 518 | | |
513 | 519 | | |
| |||
526 | 532 | | |
527 | 533 | | |
528 | 534 | | |
| 535 | + | |
| 536 | + | |
529 | 537 | | |
530 | 538 | | |
531 | 539 | | |
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
535 | 543 | | |
536 | | - | |
| 544 | + | |
537 | 545 | | |
538 | 546 | | |
539 | | - | |
| 547 | + | |
540 | 548 | | |
0 commit comments