Skip to content

Commit 9e01271

Browse files
ZvonimirZvonimir
authored andcommitted
make epcis opt-in for the dkg-node
1 parent 0929945 commit 9e01271

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

apps/agent/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"dependencies": {
3333
"@dkg/expo-forcegraph": "^0.0.0",
3434
"@dkg/plugin-dkg-essentials": "^0.0.3",
35-
"@dkg/plugin-epcis": "^0.0.1",
3635
"@dkg/plugin-example": "^0.0.3",
3736
"@dkg/plugin-oauth": "^0.0.2",
3837
"@dkg/plugin-swagger": "^0.0.2",

apps/agent/src/server/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { createPluginServer, defaultPlugin } from "@dkg/plugins";
33
import { authorized, createOAuthPlugin } from "@dkg/plugin-oauth";
44
import dkgEssentialsPlugin from "@dkg/plugin-dkg-essentials";
55
import createFsBlobStorage from "@dkg/plugin-dkg-essentials/createFsBlobStorage";
6-
import epcisPlugin, { applyEpcisHttpScopeGuards } from "@dkg/plugin-epcis";
76
import examplePlugin from "@dkg/plugin-example";
87
import swaggerPlugin from "@dkg/plugin-swagger";
98
//@ts-expect-error No types for dkg.js ...
@@ -108,7 +107,6 @@ const app = createPluginServer({
108107
defaultPlugin,
109108
oauthPlugin,
110109
(_, __, api) => {
111-
applyEpcisHttpScopeGuards(api, authorized);
112110
api.use("/mcp", authorized(["mcp"]));
113111
api.use("/mcp", (req, res, next) => {
114112
if (res.locals.auth) {
@@ -130,7 +128,6 @@ const app = createPluginServer({
130128
},
131129
accountManagementPlugin,
132130
dkgEssentialsPlugin,
133-
epcisPlugin,
134131
examplePlugin.withNamespace("protected", {
135132
middlewares: [authorized(["scope123"])], // Allow only users with the "scope123" scope
136133
}),

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)