Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
Lauren Zugai 6d8745a2f4
feat(react): Add React signin Sync web channel events for fx_desktop_v3 + oauth_webchannel_v1
Because:
* We are moving from Backbone to React and want to meet parity with Sync functionality

This commit:
* Tweaks config-fxios script since iOS changed directory nesting
* Adds firefox.fxaLogin and firefox.fxaOAuthLogin web channel events where needed; it should talk to the browser with a happy path login, signin_token_code flow, and signin_totp_code flow
* Return unwrapBKey as part of signin callback data for sync
* Always displays password input for Sync (no cached login)
* Adds temp 'hack' (tempHandleSyncLogin) to allow a hard navigate to CAD to work in these flows
* Fixes bug where we were sending fxaLogin instead of fxaCanLinkAccount. Removed these from signin and signup container pages because we send one on the index page and it's causing multiple Sync dialogs
* Renames signinLocationState in signintotpcode to signinState since it can be set to local storage values
* Tweaks when to display third party auth for Sync (only show in the Sync flow when user does not have a PW set)

closes FXA-9059
2024-03-27 09:35:27 -05:00
Lauren Zugai 33a802c1bd
chore(script): Rework config-fxios script for iOS testing, remove replace-in-file
Because:
* The script has been broken since firefox-ios moved to Rust components and we want to do local iOS testing

This commit:
* Reworks the script that replaced several strings containing our endpoints to change a parameter used to call FxAConfig in the firefox-ios directory instead. On the Rust side we're now checking against the well-known file for these endpoints instead of using hard-coded values
* Removes replace-in-file in favor of fs since while this approach is still not robust, the new regex checks for a FxAConfig function call and replaces a specific parameter and replace-in-file does not seem to support regex/partial replacements like this

Closes FXA-2195
2023-12-06 09:25:35 -06:00
Danny Coates 1dd1b038d4
refactor(config): replace 127.0.0.1 with localhost
why, after all these years?

because there's a few annoying cases where the loopback
makes dev harder. When you try to test a flow from a not
local machine, like a tv, mobile device, or a saucelabs
proxy session. With localhost it's easy enough to forward
but loopback not so much

enough is enough
2020-04-15 13:55:42 -07:00
Danny Coates 52e5d10a43 prepare for monorepo 2019-04-01 10:58:37 -07:00
vladikoff c96ae990a8 fix(fxios): add Firefox for iOS instructions 2015-10-20 16:50:42 -04:00