TinyMCE MultiCloud Plugin - v0.1.1
    Preparing search index...

    Interface OneDriveProviderConfig

    Configuration for the OneDrive provider. Requires a clientId from Microsoft Entra (Azure AD) app registration.

    Salvatore Callari Callari@WaXCode.net

    interface OneDriveProviderConfig {
        action?: "query" | "share" | "download";
        advanced?: Record<string, unknown>;
        apiKey?: string;
        clientId: string;
        enabled?: boolean;
        headers?: Record<string, string>;
        multiSelect?: boolean;
        pickerUrl?: string;
        popupFeatures?: string;
        redirectUri?: string;
        scopes?: string[];
        timeoutMs?: number;
        token?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action?: "query" | "share" | "download"

    OneDrive picker action mode. Defaults to "query".

    advanced?: Record<string, unknown>

    Advanced configuration object forwarded directly to the OneDrive SDK.

    apiKey?: string

    API key, used by Google Drive in addition to clientId.

    clientId: string

    Azure AD / Entra application (client) ID.

    enabled?: boolean

    Set to false to completely disable this provider. Disabled providers are excluded from the picker dialog. Defaults to true.

    headers?: Record<string, string>

    Extra HTTP headers forwarded to provider API calls (e.g. for WebDAV requests).

    multiSelect?: boolean

    Whether to allow selecting multiple files at once. Defaults to false.

    pickerUrl?: string

    URL of a custom picker page that communicates back via postMessage using the PickerMessage contract. When set, the built-in SDK flow is bypassed entirely and this URL is opened in a popup window.

    popupFeatures?: string

    Window features string passed to window.open for the picker popup (e.g. "width=1120,height=760").

    redirectUri?: string

    OAuth redirect URI registered in the Azure AD app. Defaults to the current page origin + pathname.

    scopes?: string[]

    OAuth scopes to request. Falls back to a provider-specific default when omitted.

    timeoutMs?: number

    Per-provider picker timeout in milliseconds. Overrides MultiCloudPluginOptions.popupTimeoutMs.

    token?: string

    Pre-obtained access token. When supplied, the provider may skip the interactive auth step.