n8n
Version:
n8n Workflow Automation Tool
21 lines (20 loc) • 1.26 kB
TypeScript
import type { SamlAcsDto, SamlPreferences } from '@n8n/api-types';
import type { User } from '@n8n/db';
import type { FlowResult } from 'samlify/types/src/flow';
import type { SamlAttributeMapping, SamlUserAttributes } from './types';
export declare function isSamlLoginEnabled(): boolean;
export declare function getSamlLoginLabel(): string;
export declare function setSamlLoginEnabled(enabled: boolean): Promise<void>;
export declare function setSamlLoginLabel(label: string): void;
export declare function isSamlLicensed(): boolean;
export declare function isSamlLicensedAndEnabled(): boolean;
export declare const isSamlPreferences: (candidate: unknown) => candidate is SamlPreferences;
export declare function createUserFromSamlAttributes(attributes: SamlUserAttributes): Promise<User>;
export declare function updateUserFromSamlAttributes(user: User, attributes: SamlUserAttributes): Promise<User>;
type GetMappedSamlReturn = {
attributes: SamlUserAttributes | undefined;
missingAttributes: string[];
};
export declare function getMappedSamlAttributesFromFlowResult(flowResult: FlowResult, attributeMapping: SamlAttributeMapping): GetMappedSamlReturn;
export declare function isConnectionTestRequest(payload: SamlAcsDto): boolean;
export {};