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
59 lines • 1.64 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OIDCModelProxy = exports.OIDCVolatileModelNames = exports.OIDCGrantModelNames = exports.OIDCModelNames = void 0;
exports.OIDCModelNames = [
"Session",
"AccessToken",
"AuthorizationCode",
"RefreshToken",
"DeviceCode",
"ClientCredentials",
"Client",
"InitialAccessToken",
"RegistrationAccessToken",
"Interaction",
"ReplayDetection",
"PushedAuthorizationRequest",
];
exports.OIDCGrantModelNames = [
"AccessToken",
"AuthorizationCode",
"RefreshToken",
"DeviceCode",
];
exports.OIDCVolatileModelNames = [
"Session",
"AccessToken",
"AuthorizationCode",
"RefreshToken",
"DeviceCode",
"InitialAccessToken",
"RegistrationAccessToken",
"Interaction",
"ReplayDetection",
"PushedAuthorizationRequest",
];
class OIDCModelProxy {
/**
*
* Creates an instance of MyAdapter for an oidc-provider model.
*
* @constructor
* @param props
*
* @param props.name "AuthorizationCode", "RefreshToken", "ClientCredentials", "Client", "InitialAccessToken",
* "RegistrationAccessToken", "DeviceCode", "Interaction", "ReplayDetection", or "PushedAuthorizationRequest"
* @param props.logger
* @param options
*/
constructor(props, options) {
this.props = props;
this.logger = props.logger;
this.logger.info(`${this.name} oidc model proxy has been created`);
}
get name() {
return this.props.name;
}
}
exports.OIDCModelProxy = OIDCModelProxy;
//# sourceMappingURL=model.js.map