@bedrock/vc-verifier 12.0.0 → 12.1.0
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/lib/http.js +3 -6
- package/package.json +3 -3
package/lib/http.js
CHANGED
|
@@ -59,8 +59,7 @@ export async function addRoutes({app, service} = {}) {
|
|
|
59
59
|
cors(),
|
|
60
60
|
validate({bodySchema: createChallengeBody}),
|
|
61
61
|
getConfigMiddleware,
|
|
62
|
-
|
|
63
|
-
middleware.authorizeConfigZcapInvocation(),
|
|
62
|
+
middleware.authorizeServiceObjectRequest(),
|
|
64
63
|
asyncHandler(async (req, res) => {
|
|
65
64
|
const {config} = req.serviceObject;
|
|
66
65
|
const challenge = await createChallenge({verifierId: config.id});
|
|
@@ -77,8 +76,7 @@ export async function addRoutes({app, service} = {}) {
|
|
|
77
76
|
cors(),
|
|
78
77
|
validate({bodySchema: verifyCredentialBody}),
|
|
79
78
|
getConfigMiddleware,
|
|
80
|
-
|
|
81
|
-
middleware.authorizeConfigZcapInvocation(),
|
|
79
|
+
middleware.authorizeServiceObjectRequest(),
|
|
82
80
|
asyncHandler(async (req, res) => {
|
|
83
81
|
const {config} = req.serviceObject;
|
|
84
82
|
const documentLoader = await createDocumentLoader({config});
|
|
@@ -135,8 +133,7 @@ export async function addRoutes({app, service} = {}) {
|
|
|
135
133
|
cors(),
|
|
136
134
|
validate({bodySchema: verifyPresentationBody}),
|
|
137
135
|
getConfigMiddleware,
|
|
138
|
-
|
|
139
|
-
middleware.authorizeConfigZcapInvocation(),
|
|
136
|
+
middleware.authorizeServiceObjectRequest(),
|
|
140
137
|
asyncHandler(async (req, res) => {
|
|
141
138
|
const {config} = req.serviceObject;
|
|
142
139
|
const documentLoader = await createDocumentLoader({config});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bedrock/vc-verifier",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Bedrock VC Verifier",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@bedrock/mongodb": "^10.0.0",
|
|
47
47
|
"@bedrock/security-context": "^7.0.0",
|
|
48
48
|
"@bedrock/service-agent": "^6.0.0",
|
|
49
|
-
"@bedrock/service-context-store": "^8.
|
|
50
|
-
"@bedrock/service-core": "^6.
|
|
49
|
+
"@bedrock/service-context-store": "^8.1.0",
|
|
50
|
+
"@bedrock/service-core": "^6.1.2",
|
|
51
51
|
"@bedrock/validation": "^7.0.0",
|
|
52
52
|
"@bedrock/vc-revocation-list-context": "^3.1.0",
|
|
53
53
|
"@bedrock/vc-status-list-context": "^4.1.0",
|