Closed
Bug 1023296
Opened 11 years ago
Closed 11 years ago
Use app:// scheme as audience for verification of assertions coming from the FxOS client
Categories
(Hello (Loop) :: Server, defect)
Hello (Loop)
Server
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: ferjm, Assigned: alexis+bugs)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
FxOS privileged apps are able to set a custom origin in their manifest, however they are still tied to the app:// scheme. On the other hand, FxAccounts and MobileID assertions has their audience set to the origin of the requester app by default. If the Loop server verifies an assertion coming from the FxOS client with the https URL, it will fail. So we need to make the scheme change in the server iff only the scheme defers from the expected origin.
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → alexis+bugs
| Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8438292 -
Flags: review?(rhubscher)
Attachment #8438292 -
Flags: feedback?(josea.olivera)
Attachment #8438292 -
Flags: feedback?(ckarlof)
Updated•11 years ago
|
Attachment #8438292 -
Flags: review?(rhubscher) → review+
Comment 2•11 years ago
|
||
Comment on attachment 8438292 [details] [review]
link to github PR
Works like a charm. Thanks for adding this.
Attachment #8438292 -
Flags: feedback?(josea.olivera) → feedback+
| Assignee | ||
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Whiteboard: [qa-]
Comment 4•11 years ago
|
||
Comment on attachment 8438292 [details] [review]
link to github PR
I'd prefer a different approach to allow app:// audiences for the loop server. At the least, it would be nice if it uses a URL parsing library as opposed to a regex. Even better would be to restructure the code to pass in the specific app:// audience when you know it's being used.
Manually parsing the assertion for these purposes is a bit of an anti-pattern and I would avoid it if you could. A bug in this logic could cause you to accept whatever audience is specified by the assertion.
https://github.com/mozilla-services/loop-server/pull/99#discussion-diff-13664348
Attachment #8438292 -
Flags: feedback?(ckarlof) → feedback-
| Assignee | ||
Comment 5•11 years ago
|
||
Thanks for the feedback! See https://github.com/mozilla-services/loop-server/pull/105 for a different approach.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 6•11 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•