Repository navigation
fix(flow): harden prefixed routes, JSPB probes, and login promotion - #41
Conversation
- Strip host, account, and organization prefixes in route guards - Forward authuser and pageId and batch cPZSdc with KV2T2d probes - Decode JSPB zero flags, sparse pivot fields, and KV2T2d codes - Require post-challenge Flow workspace visits before promotion - Preserve account routes and reopen LoginChrome on failed checks
byteland-app
left a comment
There was a problem hiding this comment.
probe_history_db selects a newer Flow workspace visit, then continues scanning older visits. An earlier rejection from the same login attempt overrides the new workspace and prevents promotion even after the user signs in successfully. Order rejection handling by the active login attempt and check that the target belongs to the expected account before promotion. Verify a rejected sign-in followed by a successful recovery in the same Chrome window.
|
Closing as a duplicate. #48 changes almost the same files ( Review points that stay open for a later PR, if you want the batch probes of
You can reopen this PR if needed. |
|
Acknowledged — keeping this PR closed in favor of #48. For reference or cherry-picking into a follow-up PR after #48 merges, commit
|
Summary
Harden the Google Flow authentication handshake across prefixed routes, read-only eligibility probes, and interactive
LoginChromepromotion (boq_labs-ai-sandbox-frontend_20261120.00_p0):src/project_route.rs,src/auth.rs,ts/angular.ts,ts/check_auth.ts,ts/dom.ts): Share/fx/tools/flow,/u/<digits>,/<org>/global, and/fxprefix extraction and stripping with reserved-segment guards sois_signed_in_flow_urlandisWorkspaceLocationreject all 17 non-workspace routes andis_about_landing_urlmatches/about,/flow, and/flow/aboutunder every supported prefix.ts/check_auth.ts,ts/resolve_video_url.ts,ts/types.ts): Forwardauthuser(from query,/u/<digits>, orWIZ_global_data.QrtxK) andpageId, batchcPZSdc("[]") withKV2T2d("[22]"whenWIZ_global_data.cPpIQe !== true), and decode JSPB numeric0,false, sparse pivot entries"31"/"32"(indices30/31) oncPZSdc, plusKV2T2dcodes4..=8(7->"age_restricted",4|5|6|8->"unavailable").src/chrome.rs,src/engine.rs,src/auth.rs,src/project.rs): Setready_flow_urlininspect_login_profileonly when valid Google auth cookies exist and ChromeHistoryshows a Flow workspace visit afteraccounts.google.comchallenges, preserve active prefixes/authuser/pageIdacross promotion and SSO redirects, keepLoginChromeopen during mid-challenge status checks, and reopenLoginChrome(clean: false) when promoted verification fails before timeout.Verification
cargo xtask cipasses cleanly (CI: OK: formatting, license headers, LF line endings,<= 800code lines per file, forbidden token/test rules, Flow build contracts,tsc --noEmit,clippy --all-targets -- -D warnings,rustdoc --document-private-items,cargo build, andcargo deny check).checkAuthquery/batching modes, 17 JSPBcPZSdc+KV2T2denvelope cases, SQLiteHistory+Cookiesprofile probes, and liveChromeEnginepromotion +clean: falsereopen sequences.Automated PR initiated by user @byteland-app via Stitch Loop.