Comments (5)
Indeed.
Another approach would be to not send the time info from the server in the challenge, but only send an offset / staleness period in the case when the server decides that it's not fresh enough. Saves bits, reduces use of crypto, limits the exposure to only the failure case.
from hawk.
The goal is to put all the burden of time sync on the client and not involve the server other than giving a point of reference. See http://www.links.org/?p=1297 (which was posted while I was talking to Ben...)
from hawk.
Yes, absolutely. I was just wondering if it was necessary to put this info in the initial challenge; protecting it is likely to be difficult/expensive, I suspect.
from hawk.
The question is if this is going to save another round trip, it might be worth it. If Hawk is ever used in a discovery scenario, the client will need it.
Going to try: the server sends the client a MAC together with its time value. The client returns the time value, the MAC, whenever it relies on that time value as an offset. The server checks the mac to make sure its really a time value that it issued.
from hawk.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
from hawk.
Related Issues (20)
- Can you help for PERL implementation? HOT 2
- Action required: Greenkeeper could not be activated 🚨 HOT 1
- Update deps HOT 1
- Rust Implementation HOT 3
- No Changelog HOT 4
- Only node 12
- Drop hapi 17
- Add TypeScript typings HOT 1
- Import changes made at hapi HOT 5
- Update mozilla/hawk to Mozilla repo standards HOT 1
- Decide future of hapi hawk plugin HOT 2
- Set up CI HOT 4
- Support webpack'ing hawk HOT 1
- Support use of this library in frontend code HOT 9
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms HOT 1
- Using hawk in Angular app for absence.io
- Examples in API.md are broken
- Porting test framework HOT 2
- The incoming hash of the payload is being trusted and not verified HOT 15
- types.js:8 Uncaught ReferenceError: Buffer is not defined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hawk.