Interface ServerEncryptionScopes
interface ServerEncryptionScopes {
"platform:passwordreset": {
exp: number;
iat: number;
isSet?: boolean;
returnUrl: string;
user: number;
verifier?: string;
};
"platform:settoken": SetAuthCookies & { target: string };
"platform:totpchallenge": {
challenge: string;
password: string;
returnTo: string;
userId: number;
validUntil: Date;
};
"publisher:preview": { id: number; isfolder: boolean; parentsite: number };
"wrd:authplugin.logincontroltoken": {
afterlogin: string;
logintypes: string[];
prompt: PromptFlag;
returnto: string;
ruleid: number;
validuntil: Date;
};
}
"platform:passwordreset": {
exp: number;
iat: number;
isSet?: boolean;
returnUrl: string;
user: number;
verifier?: string;
};
"platform:settoken": SetAuthCookies & { target: string };
"platform:totpchallenge": {
challenge: string;
password: string;
returnTo: string;
userId: number;
validUntil: Date;
};
"publisher:preview": { id: number; isfolder: boolean; parentsite: number };
"wrd:authplugin.logincontroltoken": {
afterlogin: string;
logintypes: string[];
prompt: PromptFlag;
returnto: string;
ruleid: number;
validuntil: Date;
};
}
Properties
platform:passwordreset
"platform:passwordreset": {
exp: number;
iat: number;
isSet?: boolean;
returnUrl: string;
user: number;
verifier?: string;
}
exp: number;
iat: number;
isSet?: boolean;
returnUrl: string;
user: number;
verifier?: string;
}
Type declaration
exp: number
Expiration
iat: number
Creation
Optional
isSet?: booleanIs set password?
returnUrl: string
Return URL
user: number
User to reset
Optional
verifier?: stringVerifier expected, if any
platform:settoken
"platform:settoken": SetAuthCookies & { target: string }
platform:totpchallenge
"platform:totpchallenge": {
challenge: string;
password: string;
returnTo: string;
userId: number;
validUntil: Date;
}
challenge: string;
password: string;
returnTo: string;
userId: number;
validUntil: Date;
}
publisher:preview
"publisher:preview": { id: number; isfolder: boolean; parentsite: number }
wrd:authplugin.logincontroltoken
"wrd:authplugin.logincontroltoken": {
afterlogin: string;
logintypes: string[];
prompt: PromptFlag;
returnto: string;
ruleid: number;
validuntil: Date;
}
afterlogin: string;
logintypes: string[];
prompt: PromptFlag;
returnto: string;
ruleid: number;
validuntil: Date;
}
Type declaration
afterlogin: string
logintypes: string[]
Expected logintypes, eg 'wrdauth' or 'external'
prompt: PromptFlag
returnto: string
ruleid: number
validuntil: Date
Extend this interface to define the format of your own secret scopes