Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (55 sloc) 1.39 KB
// Auth interfaces
import { IAuthOptions } from 'node-sp-auth';
// Auth interfaces
export 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;
}
export interface ICheckPromptsResponse {
needPrompts: boolean;
needSave: boolean;
authContext?: IAuthContext;
jsonRawData?: any;
}
export interface ICliInitParameters {
path: string;
encrypt?: boolean;
masterkey?: string;
format?: boolean;
}
export interface ICliReadParameters extends ICliInitParameters {}
You can’t perform that action at this time.