Closed Bug 1210725 Opened 9 years ago Closed 9 years ago

Set proper audience in SyncManager.getAssertion.

Categories

(Firefox OS Graveyard :: FxA, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(firefox44 fixed)

RESOLVED FIXED
FxOS-S8 (02Oct)
Tracking Status
firefox44 --- fixed

People

(Reporter: ferjm, Assigned: ferjm)

References

Details

(Whiteboard: [partner-cherry-pick])

Attachments

(2 files)

We are currently sending {"exp":2232175968017,"aud":"[System Principal]"} in the BID assertions generated from SyncManager. [System Principal] should be https://token.services.mozilla.com/ instead.
Assignee: nobody → ferjmoreno
Blocks: fxos-sync
Target Milestone: --- → FxOS-S8 (02Oct)
Attached patch Gecko fixSplinter Review
I am filling a bug to improve the b2g/components/test/unit/test_fxaccounts.js tests.
Attachment #8668873 - Flags: review?(mbdejong)
Attachment #8668872 - Flags: review?(mbdejong)
Blocks: 1205220
Comment on attachment 8668873 [details] [diff] [review]
Gecko fix

let audience = msg.audience || data.audience || principal.originNoSuffix;

would be safer, but if you're sure that nobody is using the functionality of passing msg.audience, then removing it is a nice cleanup.

I think I'm not a peer for this code, but if you're sure msg.audience is unused, then LGTM/r+/as you see fit. :)
Attachment #8668873 - Flags: review?(mbdejong) → review+
Comment on attachment 8668872 [details] [review]
[gaia] ferjm:bug1210725.tokenserveraudience > mozilla-b2g:master

Maybe you can add a unit test for your change.

Otherwise, I'm not a system app peer, but LGTM/r+/as you see fit.
Attachment #8668872 - Flags: review?(mbdejong) → review+
Whiteboard: [partner-cherry-pick]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: