ServerEncryptionScopes | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Interface ServerEncryptionScopes

    Extend this interface to define the format of your own secret scopes

    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;
        };
    }
    Index

    Properties

    "platform:passwordreset": {
        exp: number;
        iat: number;
        isSet?: boolean;
        returnUrl: string;
        user: number;
        verifier?: string;
    }

    Type declaration

    • exp: number

      Expiration

    • iat: number

      Creation

    • OptionalisSet?: boolean

      Is set password?

    • returnUrl: string

      Return URL

    • user: number

      User to reset

    • Optionalverifier?: string

      Verifier expected, if any

    "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;
    }

    Type declaration

    • afterlogin: string
    • logintypes: string[]

      Expected logintypes, eg 'wrdauth' or 'external'

    • prompt: PromptFlag
    • returnto: string
    • ruleid: number
    • validuntil: Date