Network sign-in: the way back to every network site (Marty 2026-11-17: "I just logged in to Instant Ad Pay from Viral Ad Source, and it never had a return path back")

Root cause: IAP's networksso `wallets` list was hand-written and had no ViralAdSource line, so
/sso/check?r=viraladsource was refused ("unknown site asking") and the browser was sent to the
IAP dashboard: a signed-out visitor to viraladsource.com/my was even dropped there by the silent
check, and a signed-in IAP member could never be signed in on ViralAdSource through IAP.
- networksso.js: providers also answer every site in the hub's GET /v1/sso-sites; ?return=<site>
  &to=/path links remember the way back (nsso.ret, known sites only); /sso/resume finishes it
  after the code sign-in; a wallet site with no wallet on the account goes to the Wallet tab
  first (nsso.wait, no bounce loop) and the wallet link answers next: /sso/resume; the tap state
  lives 1 hour.
- server.js: every /go/<site> and ?return= request goes to networksso (no per-site list; fivex
  was missing from it too); walletPath /my#wallet; /api/me nssoBackTo; wallet link next/backTo.
- my.js: "Taking you back to <site>" after the wallet link; one line on the Wallet tab while a
  site waits for the wallet. my.js?v=20261117back.
- qa/networksso-return.e2e.mjs: hub-only site, silent check, tap, wallet step, return links,
  no open redirect. All network sign-in suites and iap-qa member pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 07:21:19 -06:00
parent 71e2e2b487
commit 72160c6a10
5 changed files with 315 additions and 21 deletions
+1 -1
View File
@@ -1312,7 +1312,7 @@
<script src="/assets/promo.js?v=20261103gp"></script>
<script src="/assets/support.js?v=20261116sg"></script>
<script src="/assets/netkits.js?v=20261117vas"></script>
<script src="/assets/my.js?v=20261115hub"></script>
<script src="/assets/my.js?v=20261117back"></script>
<script src="/assets/fuel.js?v=20261113sso"></script><script src="/assets/tankfeed.js?v=20261115tb"></script>
<script src="/assets/engine-room.js?v=20261113sso"></script>
<script src="/assets/netsso.js?v=20261113sso"></script>