@routr/connect 2.0.8-alpha.7 → 2.0.8-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/handlers.js +3 -0
- package/package.json +5 -5
package/dist/handlers.js
CHANGED
@@ -43,6 +43,9 @@ const handleRegister = (dataAPI, location) => {
|
|
43
43
|
auth.method = request.method;
|
44
44
|
const fromURI = request.message.from.address.uri;
|
45
45
|
const agent = yield (0, utils_1.findResource)(dataAPI, fromURI.host, fromURI.user);
|
46
|
+
if (!agent) {
|
47
|
+
return res.send(common_1.Auth.createForbideenResponse());
|
48
|
+
}
|
46
49
|
const credentials = yield dataAPI.get(agent === null || agent === void 0 ? void 0 : agent.spec.credentialsRef);
|
47
50
|
// Calculate response and compare with the one send by the endpoint
|
48
51
|
const calcRes = common_1.Auth.calculateAuthResponse(auth, {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@routr/connect",
|
3
|
-
"version": "2.0.8-alpha.
|
3
|
+
"version": "2.0.8-alpha.8",
|
4
4
|
"description": "Default processor",
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
6
6
|
"homepage": "https://github.com/fonoster/routr#readme",
|
@@ -28,9 +28,9 @@
|
|
28
28
|
"@opentelemetry/sdk-trace-base": "^1.0.4",
|
29
29
|
"@opentelemetry/sdk-trace-node": "^1.0.4",
|
30
30
|
"@opentelemetry/semantic-conventions": "^1.0.4",
|
31
|
-
"@routr/common": "^2.0.8-alpha.
|
32
|
-
"@routr/location": "^2.0.8-alpha.
|
33
|
-
"@routr/processor": "^2.0.8-alpha.
|
31
|
+
"@routr/common": "^2.0.8-alpha.8",
|
32
|
+
"@routr/location": "^2.0.8-alpha.8",
|
33
|
+
"@routr/processor": "^2.0.8-alpha.8"
|
34
34
|
},
|
35
35
|
"files": [
|
36
36
|
"dist"
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"bugs": {
|
46
46
|
"url": "https://github.com/fonoster/routr/issues"
|
47
47
|
},
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "bcc116fba248b34f661d88e425e5060f409be77c"
|
49
49
|
}
|