-
Notifications
You must be signed in to change notification settings - Fork 2
/
middleware.json
49 lines (49 loc) · 867 Bytes
/
middleware.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"initial:before": {
"loopback#favicon": {}
},
"initial": {
"compression": {},
"cors": {
"params": {
"origin": true,
"credentials": true,
"maxAge": 86400
}
}
},
"session": {},
"auth": {
"./middleware/authorize": {
"params": {
"jwt": "${jwt}"
}
}
},
"parse": {
"body-parser#json": {}
},
"refresh": {
"./middleware/refresh-token": {
"params": {
"access_token_ttl": "10s",
"client_secret": "**do_this_in_xyz_local_json**",
"refresh_token_ttl": "30d",
"authentication_response_body": {"some": "data"}
}
}
},
"routes": {
"loopback#rest": {
"paths": [
"${restApiRoot}"
]
}
},
"final": {
"loopback#urlNotFound": {}
},
"final:after": {
"loopback#errorHandler": {}
}
}