UNPKG

moleculer-iam

Version:

Centralized IAM module for moleculer. Including a certified OIDC provider and an Identity provider for user profile, credentials, and custom claims management. Custom claims could be defined/updated by declarative schema which contains claims validation a

17 lines 738 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.app = void 0; const tslib_1 = require("tslib"); const koa_router_1 = tslib_1.__importDefault(require("koa-router")); exports.app = async (op) => { const router = new koa_router_1.default({ sensitive: false, strict: false, }); // TODO: remove creating default client and make upsertClient method and do that here // router.get("/", (ctx, next) => { // ctx.body = `<html><body>Any optional application routes can be mapped except reserved ones, or just let be not found:<pre>${JSON.stringify(oidc.defaultRoutes, null, 2)}</pre></body></html>`; // }); return router.routes(); }; //# sourceMappingURL=app.js.map