Comments (6)
Hmm... if I use a reverse proxy I should be able to workaround this issue by forwarding the original request uri as a header option. However that makes development & testing more difficult. BTW I have requested ArangoDB to leave the original url untouched.
from hawk.
Can you provide some examples of the URIs you are having trouble with?
from hawk.
Sure this is what I'm sending (from your example code): 'http://127.0.0.1:8529/resource/1?b=1&a=2'
This is what I get into my middleware process.
2013-02-15T00:25:26Z [72832] INFO middleware authentication request {"user":null,"prefix":"/","suffix":["resource","1"],"path":"(/[^/]+)*","headers":{"authorization":"Hawk id=\"dh37fgj492je\", ts=\"1360887926\", nonce=\"NzAsMT\", ext=\"and welcome!\", mac=\"gHIPVQYoyvlG4j8viAFgKO7le1oHaMgM8jUuSbPmvKA=\"","connection":"keep-alive","content-length":"0","host":"127.0.0.1:8529"},"requestType":"GET","parameters":{"a":"2","b":"1"},"urlParameters":{},"url":"/resource/1","method":"GET"}
2013-02-15T00:25:26Z [72832] INFO normalized string hawk.1.header\n1360887926\nNzAsMT\nGET\n/resource/1\n127.0.0.1\n8529\n\nand welcome!\n
2013-02-15T00:25:26Z [72832] INFO user Steve authenticated
Note: the url parameter (and method) in the debug output above has been amended by me for usage in Hawk.
from hawk.
I'm not sure what the causes are, but the query is as important to mac as the path. It must be retained.
from hawk.
the cause is "parameters":{"a":"2","b":"1"}
which means it is impossible to know the ordering of the query parameters.
However I've filed a feature request so that ArnagoDB retains the original URL in the request object which seems get included in the next version.
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.