UNPKG

@loopback/authorization

Version:

A LoopBack component for authorization support.

21 lines 1.06 kB
"use strict"; // Copyright IBM Corp. and LoopBack contributors 2018,2020. All Rights Reserved. // Node module: @loopback/authorization // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT Object.defineProperty(exports, "__esModule", { value: true }); exports.AuthorizationComponent = void 0; const tslib_1 = require("tslib"); const core_1 = require("@loopback/core"); const authorize_interceptor_1 = require("./authorize-interceptor"); const keys_1 = require("./keys"); let AuthorizationComponent = class AuthorizationComponent { constructor() { this.bindings = [(0, core_1.createBindingFromClass)(authorize_interceptor_1.AuthorizationInterceptor)]; } }; exports.AuthorizationComponent = AuthorizationComponent; exports.AuthorizationComponent = AuthorizationComponent = tslib_1.__decorate([ (0, core_1.injectable)({ tags: { [core_1.ContextTags.KEY]: keys_1.AuthorizationBindings.COMPONENT.key } }) ], AuthorizationComponent); //# sourceMappingURL=authorization-component.js.map