Closed
Bug 930598
Opened 11 years ago
Closed 11 years ago
Generic HAWK client
Categories
(Cloud Services :: Firefox: Common, defect)
Cloud Services
Firefox: Common
Tracking
(Not tracked)
VERIFIED
DUPLICATE
of bug 935232
People
(Reporter: zaach, Unassigned)
References
Details
(Whiteboard: [qa+])
Attachments
(1 file, 1 obsolete file)
Services such as Sync and Firefox Accounts on desktop and FxOS require HAWK for certain API requests. We'll need a simple HAWK client and a helper for deriving credentials from a token.
Updated•11 years ago
|
Whiteboard: [qa?]
Updated•11 years ago
|
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Comment 1•11 years ago
|
||
Can we give this a higher-level name, like FXAClient?
Comment 2•11 years ago
|
||
Yes, I was already told that HAWK is not a good name. FXAClient sounds better to me for a start.
Comment 3•11 years ago
|
||
Here's the first version mostly taken from the existing HAWK.jsm in the fxaccounts working branch. Do we need to support all request specified for the FxAccounts API or are the FxOS requirements similar to the one on Desktop? Can we use services-common/utils and services-crypto/utils on FxOS?
Attachment #823272 -
Flags: feedback?(zack.carter)
Comment 4•11 years ago
|
||
Oh and we should of course add some tests. I will look into using SJS files and the test vectors defined in the API document.
Comment 5•11 years ago
|
||
No, SJS won't work. Let's just use an HTTP Server instance. I will additionally take a look at toolkit/modules/Http.jsm. Seems like we should probably use that.
Comment 6•11 years ago
|
||
(In reply to Tim Taubert [:ttaubert] from comment #3)
> Can we use services-common/utils and services-crypto/utils on FxOS?
According to my reading of services/moz.build, yes. (They're already used by FHR on FxOS.)
Updated•11 years ago
|
Whiteboard: [qa?] → [qa+]
Comment 7•11 years ago
|
||
Most of the stuff stolen from what Brian checked into markh's feature branch.
Attachment #823272 -
Attachment is obsolete: true
Attachment #823272 -
Flags: feedback?(zack.carter)
Attachment #824639 -
Flags: feedback?(zack.carter)
Comment 8•11 years ago
|
||
Much of the attachment 824639 [details] [diff] [review] is covered by the work in bug 935232. There are some hkdf tests in attachment 824639 [details] [diff] [review] that are not represented in the attachments in 935232. We should probably move these over. I'm resolving as duplicate.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
Updated•11 years ago
|
Assignee: ttaubert → nobody
Updated•11 years ago
|
Attachment #824639 -
Flags: feedback?(zack.carter)
You need to log in
before you can comment on or make changes to this bug.
Description
•