@5minds/processcube_engine
Version:
The ProcessCube Engine. Stores and executes BPMNs.
18 lines (17 loc) • 796 B
TypeScript
import { InternalIdentity as Identity } from '../../Contracts/InternalDataModels/Identity';
export declare const claimConfigs: Record<string, any>;
/**
* Used for integrationtests only.
*/
export declare class IamServiceMock {
private config;
constructor();
getAuthorityAddress(): string;
ensureHasClaim(identity: Identity, claimName: string, claimValue?: any, excludeAdmins?: boolean): void;
checkIfIdentityHasClaim(identity: Identity, claimName: string, claimValue?: any, excludeAdmins?: boolean): boolean;
checkIfUserIsSuperAdmin(identity: Identity): boolean;
checkIfUserIsObserver(identity: Identity): boolean;
checkIfTokenIsInternalToken(token: string): boolean;
checkIfTokenIsRootAccessToken(token: string): boolean;
private throwForbiddenError;
}