@mvx/identity
Version:
identity is oidc for mvc, type-mvc is base on koa. Decorator, Ioc, AOP mvc framework on server.
27 lines (25 loc) • 891 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Strategy = void 0;
const tslib_1 = require("tslib");
const ioc_1 = require("@tsdi/ioc");
const components_1 = require("@tsdi/components");
const IAuthenticator_1 = require("./IAuthenticator");
let Strategy = class Strategy {
static ρAnn() {
return { "name": "Strategy", "params": { "authenticate": ["ctx", "options"] } };
}
};
tslib_1.__decorate([
components_1.Input(),
tslib_1.__metadata("design:type", String)
], Strategy.prototype, "name", void 0);
tslib_1.__decorate([
ioc_1.Inject(IAuthenticator_1.AuthenticatorToken),
tslib_1.__metadata("design:type", Object)
], Strategy.prototype, "authenticator", void 0);
Strategy = tslib_1.__decorate([
ioc_1.Abstract()
], Strategy);
exports.Strategy = Strategy;
//# sourceMappingURL=../sourcemaps/passports/Strategy.js.map