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

20 lines (19 loc) 982 B
import { AdapterPayload } from "oidc-provider"; import { ModelClass, FindOptions, WhereAttributeHash } from "../../../../lib/rdbms"; import { OIDCModelProxyProps, OIDCModelProxy } from "../model"; export declare class OIDCRDBMSModelProxy extends OIDCModelProxy { protected readonly props: OIDCModelProxyProps; private readonly model; constructor(props: OIDCModelProxyProps, model: ModelClass); consume(id: string): Promise<void>; destroy(id: string): Promise<void>; find(id: string): Promise<AdapterPayload | undefined>; findByUid(uid: string): Promise<AdapterPayload>; findByUserCode(userCode: string): Promise<AdapterPayload>; get(args?: FindOptions): Promise<AdapterPayload[]>; delete(args?: FindOptions): Promise<number>; count(args?: WhereAttributeHash): Promise<number>; revokeByGrantId(grantId: string): Promise<void>; upsert(id: string, data: AdapterPayload, expiresIn: number): Promise<void>; private getEntryData; }