Commit b8ee16a
fix(gateway): separate auth check from device identity omission for auth-none
Separate two concerns that were conflated in callGatewayWithScopes:
1. **Shared-auth check** (hasLocalBackendSharedAuth): auth mode none satisfies
the local-backend shared-auth requirement → no error thrown
2. **Device identity omission** (omitDeviceIdentity): auth-none keeps the existing
device-less self-pairing bypass (shouldSkipLocalBackendSelfPairing) on the
server side → device identity intentionally omitted
Previously the PR removed allowAuthNone entirely, making auth-none
identity-bearing. Per codex review, auth-none must remain device-less
because the server-side bypass already preserves scopes correctly for
device-less local backend connections.
Co-authored-by: ClawSweeper <[email protected]>1 parent 9582911 commit b8ee16a
2 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
923 | 923 | | |
924 | 924 | | |
925 | 925 | | |
926 | | - | |
| 926 | + | |
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
943 | | - | |
944 | | - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
945 | 947 | | |
946 | 948 | | |
947 | 949 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| 488 | + | |
488 | 489 | | |
489 | 490 | | |
490 | 491 | | |
491 | | - | |
| 492 | + | |
| 493 | + | |
492 | 494 | | |
493 | 495 | | |
494 | 496 | | |
| |||
1151 | 1153 | | |
1152 | 1154 | | |
1153 | 1155 | | |
1154 | | - | |
1155 | | - | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1156 | 1164 | | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
| 1165 | + | |
1160 | 1166 | | |
1161 | 1167 | | |
1162 | 1168 | | |
1163 | 1169 | | |
1164 | 1170 | | |
| 1171 | + | |
1165 | 1172 | | |
1166 | 1173 | | |
1167 | 1174 | | |
| |||
0 commit comments