@grow-codes/casdoor - v0.1.0
    Preparing search index...

    Interface CasdoorConfigOptions

    Options accepted by CasdoorConfig (all optional).

    interface CasdoorConfigOptions {
        adminApplication?: string;
        adminOrganization?: string;
        adminPassword?: string | Secret;
        adminUsername?: string;
        application?: string;
        clientId?: string;
        clientSecret?: string | Secret;
        connectTimeoutMs?: number;
        headers?: Record<string, string>;
        hooks?: Hooks;
        logger?: ClientLogger;
        organization?: string;
        proxy?: string;
        publicUrl?: string;
        redirectUri?: string;
        requestTimeoutMs?: number;
        requireVerifiedEmail?: boolean;
        retry?: RetryPolicyOptions | RetryPolicy;
        scope?: string;
        tls?: TlsOptions;
        totalTimeoutMs?: number;
        url?: string;
        userAgentSuffix?: string;
    }

    Hierarchy (View Summary)

    Index
    adminApplication?: string

    Application of the admin user (env GROW_CASDOOR_ADMIN_APP; default app-built-in).

    adminOrganization?: string

    Organization of the admin user (env GROW_CASDOOR_ADMIN_ORG; default built-in).

    adminPassword?: string | Secret

    Built-in admin password (env GROW_CASDOOR_ADMIN_PASSWORD, CASDOOR_ADMIN_PASSWORD). When unset, admin operations authenticate with the client id/secret (HTTP Basic).

    adminUsername?: string

    Built-in admin user for admin operations (env GROW_CASDOOR_ADMIN_USERNAME, CASDOOR_ADMIN_USERNAME; default admin).

    application?: string

    Casdoor application name (env GROW_CASDOOR_APP, GROW_AUTH_APP).

    clientId?: string

    OAuth client id of the application (env GROW_CASDOOR_CLIENT_ID, GROW_AUTH_CLIENT_ID).

    clientSecret?: string | Secret

    OAuth client secret (env GROW_CASDOOR_CLIENT_SECRET, GROW_AUTH_CLIENT_SECRET).

    connectTimeoutMs?: number

    Connection setup timeout in ms (default 10 000).

    headers?: Record<string, string>

    Extra request headers.

    hooks?: Hooks

    Request/response hooks.

    logger?: ClientLogger

    Diagnostic logger (silent by default).

    organization?: string

    Casdoor organization (env GROW_CASDOOR_ORG, GROW_AUTH_ORG).

    proxy?: string

    Proxy URL. Environment proxies (HTTPS_PROXY, …) are ignored unless set here.

    publicUrl?: string

    Browser-facing Casdoor URL used by CasdoorClient.buildAuthorizeUrl (env GROW_CASDOOR_PUBLIC_URL, GROW_AUTH_PUBLIC_URL). Defaults to url.

    redirectUri?: string

    Default redirect URI of the code flow (env GROW_CASDOOR_REDIRECT_URL, GROW_AUTH_REDIRECT_URL).

    requestTimeoutMs?: number

    Per-attempt timeout in ms, headers + body (default 30 000).

    requireVerifiedEmail?: boolean

    Refuse tokens of users whose e-mail is not verified (EmailNotVerifiedError) (env GROW_CASDOOR_REQUIRE_VERIFIED_EMAIL; default true).

    Retry policy or its options.

    scope?: string

    OAuth scopes (env GROW_CASDOOR_SCOPE; default openid profile email).

    TLS settings.

    totalTimeoutMs?: number

    Whole-call timeout in ms including retries and backoff (default 120 000).

    url?: string

    Endpoint base URL.

    userAgentSuffix?: string

    Appended after the standard User-Agent.