node-sp-auth-config
Version:
Config options builder for node-sp-auth (SharePoint Authentication in Node.js)
48 lines (47 loc) • 1.48 kB
TypeScript
import { IAuthOptions } from 'node-sp-auth';
import { IHooks } from './wizard';
export declare type StrategyCode = 'OnPremiseAddinCredentials' | 'OnpremiseUserCredentials' | 'OnpremiseTmgCredentials' | 'OnpremiseFbaCredentials' | 'OnlineAddinCredentials' | 'UserCredentials' | 'AdfsUserCredentials' | 'OnDemandCredentials';
export interface IAuthContext {
siteUrl: string;
strategy?: StrategyCode;
authOptions: IAuthOptions;
custom?: any;
settings?: IAuthConfigSettings;
}
export interface IAuthContextSettings {
siteUrl: string;
strategy?: StrategyCode;
[name: string]: any;
}
export interface IStrategyDictItem {
id: StrategyCode;
withPassword: boolean;
target: ('OnPremise' | 'Online' | 'O365Dedicated')[];
name: string;
verifyCallback?: (...args: any[]) => boolean;
withSeparator?: boolean;
}
export interface IAuthConfigSettings {
configPath?: string;
defaultConfigPath?: string;
encryptPassword?: boolean;
saveConfigOnDisk?: boolean;
authOptions?: IAuthOptions;
forcePrompts?: boolean;
masterKey?: string;
headlessMode?: boolean;
hooks?: IHooks;
}
export interface ICheckPromptsResponse {
needPrompts: boolean;
needSave: boolean;
authContext?: IAuthContext;
jsonRawData?: any;
}
export interface ICliInitParameters {
path: string;
encrypt?: boolean;
masterkey?: string;
format?: boolean;
}
export declare type ICliReadParameters = ICliInitParameters;