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
35 lines (34 loc) • 1.31 kB
TypeScript
import { OIDCError } from "../op";
import { ValidationError as ValidationErrorEntry } from "../lib/validator";
declare class IdentityProviderError implements OIDCError {
readonly status: number;
readonly error: string;
readonly error_description: string | undefined;
constructor(status: number, error: string, error_description: string | undefined);
}
declare class IdentityAlreadyExists extends IdentityProviderError {
constructor();
}
declare class IdentityNotExists extends IdentityProviderError {
constructor();
}
declare class InvalidCredentials extends IdentityProviderError {
constructor();
}
declare class UnsupportedCredentials extends IdentityProviderError {
constructor();
}
declare class ValidationFailed extends IdentityProviderError {
readonly data: ValidationErrorEntry[];
readonly debug?: object | undefined;
constructor(data: ValidationErrorEntry[], debug?: object | undefined);
}
export declare const IAMErrors: {
IdentityProviderError: typeof IdentityProviderError;
IdentityAlreadyExists: typeof IdentityAlreadyExists;
IdentityNotExists: typeof IdentityNotExists;
InvalidCredentials: typeof InvalidCredentials;
UnsupportedCredentials: typeof UnsupportedCredentials;
ValidationFailed: typeof ValidationFailed;
};
export {};