UNPKG

@restorecommerce/acs-client

Version:

Access Control Service Client

15 lines 475 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.acsClientMiddleware = void 0; const authz_1 = require("./authz"); /** * Koa middleware using the BMSLSA implementation for `iam-authn`. */ const acsClientMiddleware = (config) => { return async (ctx, next) => { ctx.authZ = (0, authz_1.initAuthZ)(config); await next(); }; }; exports.acsClientMiddleware = acsClientMiddleware; //# sourceMappingURL=middleware.js.map