botas-core
    Preparing search index...

    Interface BotApplicationOptions

    Options for BotApplication. Credentials are resolved in this priority order:

    clientId clientSecret managedIdentityClientId Result
    not set — — No auth (dev/testing only)
    set set — Client secret
    set not set — User managed identity
    set not set different Federated identity (UMI)
    set not set "system" Federated identity (sys MI)

    All fields fall back to their corresponding environment variables (CLIENT_ID, CLIENT_SECRET, TENANT_ID, MANAGED_IDENTITY_CLIENT_ID).

    interface BotApplicationOptions {
        clientId?: string;
        clientSecret?: string;
        tenantId?: string;
        token?: (scope: string, tenantId: string) => Promise<string>;
        managedIdentityClientId?: string & Record<never, never> | "system";
    }

    Hierarchy

    • TokenManagerOptions
      • BotApplicationOptions
    Index

    Properties

    clientId?: string

    Application (client) ID.

    clientSecret?: string

    Client secret.

    tenantId?: string

    Tenant ID.

    token?: (scope: string, tenantId: string) => Promise<string>

    Custom token factory. When provided, called instead of MSAL for every token acquisition.

    managedIdentityClientId?: string & Record<never, never> | "system"

    Managed identity client ID for federated identity credentials. Use "system" for system-assigned managed identity.