Closed Bug 930598 Opened 11 years ago Closed 11 years ago

Generic HAWK client

Categories

(Cloud Services :: Firefox: Common, defect)

defect
Not set
normal

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.
Whiteboard: [qa?]
Assignee: nobody → ttaubert
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
Can we give this a higher-level name, like FXAClient?
Yes, I was already told that HAWK is not a good name. FXAClient sounds better to me for a start.
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)
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.
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.
(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.)
Whiteboard: [qa?] → [qa+]
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)
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
No longer blocks: 935232
OK.
Status: RESOLVED → VERIFIED
Assignee: ttaubert → nobody
Attachment #824639 - Flags: feedback?(zack.carter)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: