Skip to content

Bug 2062477 pairing v2 - #344

Closed
dschom wants to merge 2 commits into
mozilla-firefox:mainfrom
dschom:bug-2062477-pairing-v2
Closed

Bug 2062477 pairing v2#344
dschom wants to merge 2 commits into
mozilla-firefox:mainfrom
dschom:bug-2062477-pairing-v2

Conversation

@dschom

@dschom dschom commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Linking to the actual changset used in phabricator

dschom and others added 2 commits August 20, 2026 12:59
…h,roger

Adds the fxaccounts:pair_oauth_start and fxaccounts:pair_oauth_finish
web-channel commands, gated on a new identity.fxaccounts.pairing.version
pref that is advertised to FxA as capabilities.pairingVersion.

Acting as the supplicant, the pair_oauth_start command begins an OAuth
flow and responds with the parameters: state, scope, code_challenge,
and keys_jwk. Note the code verifier never leaves the browser, and that
these parameters were all previously exposed on the /pair/supp/allow url.

Acting as the authority, the pair_oauth_finish command grants an
authorization code for a supplicant's parameters. The
_authorizeOAuthCode and the createKeysJWE methods move out of
FxAccountsPairing and into FxAccountsOAuth, so the channel-server
pairing flow and the new web-channel command can share one
implementation. It’s also worth noting that these methods represent
operations that are part of the oauth process and therefore are a better
fit for the FxAccountsOAuth module anyways.

On Android, FxaCapability.PAIRING_V2 advertises pairingVersion and
enables fxaccounts:pair_oauth_start, and the fxaccounts:pair_oauth_start
has been wired up.

Differential Revision: https://phabricator.services.mozilla.com/D319867
@firefoxci-taskcluster

Copy link
Copy Markdown
No Taskcluster jobs started for this pull request

The allowPullRequests configuration for this repository (in .taskcluster.yml on the default branch) does not allow starting tasks for this pull request.

@github-actions

Copy link
Copy Markdown
Contributor

(Automated Close) Please do not file pull requests here, see https://firefox-source-docs.mozilla.org/contributing/how_to_submit_a_patch.html

@github-actions github-actions Bot closed this Aug 20, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant