Closed
Bug 1210725
Opened 10 years ago
Closed 10 years ago
Set proper audience in SyncManager.getAssertion.
Categories
(Firefox OS Graveyard :: FxA, defect)
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 | ||
Updated•10 years ago
|
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
I am filling a bug to improve the b2g/components/test/unit/test_fxaccounts.js tests.
Attachment #8668873 -
Flags: review?(mbdejong)
Assignee | ||
Updated•10 years ago
|
Attachment #8668872 -
Flags: review?(mbdejong)
Assignee | ||
Comment 3•10 years ago
|
||
Comment 4•10 years ago
|
||
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 5•10 years ago
|
||
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.
Assignee | ||
Comment 6•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/68d8bca34e9953731f4d59366a1f025bbecd9634
Bug 1210725 - Set proper audience in SyncManager.getAssertion. r=michielbdjong
Updated•10 years ago
|
Attachment #8668872 -
Flags: review?(mbdejong) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Gaia: https://github.com/mozilla-b2g/gaia/commit/d0856c669abfc4af1265a5f6936f0fa52d7d02ab
I added the unit test as you suggested.
Assignee | ||
Updated•10 years ago
|
Whiteboard: [partner-cherry-pick]
You need to log in
before you can comment on or make changes to this bug.
Description
•