Closed Bug 912219 Opened 11 years ago Closed 11 years ago

Generate Hawk headers using Sync 2.0 token from FxAccounts module

Categories

(Firefox :: Sync, defect)

x86
macOS
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: zaach, Assigned: zaach)

References

Details

(Whiteboard: [qa+])

The FxAccounts module can expose a method for generating Hawk authorization headers, which rely on the Sync 2.0 token it has stored.
Whiteboard: [qa+]
Alternative API is to have the FxAccounts module expose an interface to get the token, and the Hawk auth header generation can happen in identity.js. I think that's better, but I could be swayed.
Generally, pass as little between compartments as possible. Given that some Hawk headers require reading the request body, I'd go with Chris's approach in Comment 1. Generally I feel like that's a smoother API, too.
Yeah, let's keep Hawk out of the FxA module.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
OK. Marking Verified/Invalid.
Status: RESOLVED → VERIFIED
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.