hydrator test
This commit is contained in:
parent
48cfd5142e
commit
d3279b63a7
|
@ -1,7 +1,7 @@
|
|||
- id: "ory:kratos:public"
|
||||
upstream:
|
||||
preserve_host: true
|
||||
url: "http://kratos:4433"
|
||||
url: "http://accounts:3000/kratos"
|
||||
strip_path: /.ory/kratos/public
|
||||
match:
|
||||
url: "http://oathkeeper:4455/.ory/kratos/public/<**>"
|
||||
|
@ -16,7 +16,10 @@
|
|||
authorizer:
|
||||
handler: allow
|
||||
mutators:
|
||||
- handler: noop
|
||||
- handler: hydrator
|
||||
config:
|
||||
api:
|
||||
url: "http://dashboard:3000/api/hydrator"
|
||||
|
||||
- id: "dashboard:anonymous"
|
||||
upstream:
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
export default (req, res) => {
|
||||
console.log(Object.keys(req));
|
||||
console.log(JSON.stringify(req));
|
||||
|
||||
res.json({ name: "John Doe" });
|
||||
};
|
Reference in New Issue