Alan Plum
b76f8adc0f
Add SyntheticRequest#auth ( #8750 )
...
* Add SyntheticRequest#auth
* Fix tests
2019-04-12 21:18:35 +02:00
Heiko
def7b613db
code now fits to the documentation of the arangoUser object inside th… ( #8352 )
...
* code now fits to the documentation of the arangoUser object inside the foxx request object
* more tests
2019-03-11 12:43:59 +01:00
Alan Plum
c74583b089
Fix windows test for Foxx socket request URL ( #7536 )
...
* Fix windows test for Foxx socket request URL
* Fix unix abs path test
2018-12-10 15:44:00 +01:00
Alan Plum
c36c8c48ee
Teach Foxx req.makeAbsolute about unix sockets ( #7327 )
...
* Expose rawReq.server.endpoint in JS
* Make rawReq.portType enumerable
This is not strictly necessary but we don't gain much from hiding its existence.
* Allow using http: protocol in local requests
This helps distinguishing local request URLs from file paths in ambiguous contexts.
The alternative would require the user to specify the local endpoint but this doesn't work with
sockets (and for non-sockets would incur the penalty of a real network roundtrip).
* Teach Foxx req.makeAbsolute about unix sockets
* Add Foxx socket tests
2018-11-20 14:20:56 +01:00
Andreas Streichardt
49328dcecb
Add authorizedflag fixing cluster internal foxx requests
2017-05-17 18:14:11 +02:00
Andreas Streichardt
6ee1f6d14a
Reformat code
2016-06-30 16:57:17 +02:00
Alan Plum
ab296ac829
Check trustedProxies lazily
2016-06-20 18:57:42 +02:00
Alan Plum
a0b67ae7ad
Handle false-y TRUSTED_PROXIES as null
2016-06-20 18:03:48 +02:00
Alan Plum
50b8873d7c
More docs
2016-06-20 17:37:45 +02:00
Max Neunhoeffer
11e3de54a1
Repair reverse proxy absolute path rewriting business.
2016-06-20 00:40:45 -07:00
Alan Plum
b289f666db
More detailed error messages in Foxx API
2016-06-16 19:52:27 +02:00
Alan Plum
e880cd6ec3
trustProxy should be null by default
...
If neither ArangoDB itself nor the Foxx service specify whether proxies should be trusted, the default should not be true.
2016-06-16 11:08:37 +02:00
Alan Plum
4b65779cc4
Add req.trustProxy, req.arangoUser, req.arangoVersion
2016-06-15 17:11:57 +02:00
Alan Plum
7c40d6d58d
Don't expose internal request user to Foxx
2016-06-15 16:32:35 +02:00
Alan Plum
a8219b4818
Unbreak the build I say
2016-06-14 17:20:06 +02:00
Andreas Streichardt
021b71a7c1
Frontend is working
2016-06-01 17:51:39 +02:00
Alan Plum
63ccfa22a9
request.params -> request.param
2016-05-31 12:55:04 +02:00
Alan Plum
94462c90c0
Fall back to Infinity for request.range max value
2016-05-31 12:55:04 +02:00
Alan Plum
96aa1d9129
Add req.json
2016-04-20 17:18:51 +02:00
Alan Plum
50ae4804f6
Spacing
2016-04-20 15:23:00 +02:00
Alan Plum
7364c428e7
Add SyntheticRequest#database
2016-04-18 18:00:55 +02:00
Alan Plum
6473209430
Fix hasOwnProperty call
2016-04-18 18:00:42 +02:00
Alan Plum
cae8a6607b
Add ServerRequest#params
2016-04-18 18:00:39 +02:00
Alan Plum
18ff55b7dd
Add SyntheticRequest tests
2016-04-18 18:00:37 +02:00
Alan Plum
2993b73c25
More SyntheticRequest tests
2016-04-18 18:00:37 +02:00
Alan Plum
ee90edfe45
Fix SyntheticRequest
2016-04-18 18:00:36 +02:00
Alan Plum
bd4bc8eb96
SyntheticRequest: add baseUrl and makeAbsolute
2016-04-18 18:00:31 +02:00
Alan Plum
4f2dc536ee
Tightening
...
Convert some lets to consts and eliminate the redundancy in Router.
2016-04-18 18:00:31 +02:00
Alan Plum
1f347b3145
Update license headers
2016-04-18 18:00:30 +02:00
Alan Plum
d971780ba8
Make routing actually work
2016-04-18 18:00:30 +02:00
Alan Plum
244345d178
SyntheticRequest#originalUrl should encode db
2016-04-18 18:00:25 +02:00
Alan Plum
572952864c
Expose service context in request obj
2016-04-18 18:00:24 +02:00
Alan Plum
9e3833eadd
Basic implementation of SyntheticRequest
...
Fixes #1191 .
2016-04-18 18:00:23 +02:00
Alan Plum
4b0fd593ce
Implement rudimentary route handling
2016-04-18 18:00:22 +02:00