@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Interface AuthorizeAccountRequest

    Request parameters for the b2_authorize_account API call. Credentials are sent via HTTP Basic auth in the raw API, but represented here as fields.

    interface AuthorizeAccountRequest {
        applicationKey: string;
        applicationKeyId: string;
        realm?: string;
    }
    Index

    Properties

    applicationKey: string

    The application key secret.

    applicationKeyId: string

    The application key ID (account ID or app key ID).

    realm?: string

    Optional realm override. Accepts a known realm-map key ("production" or "staging") or a direct base URL. Custom HTTPS hosts are trusted with the application key during authorize, so never derive this value from untrusted input. URL values must use HTTPS, or loopback IP literal HTTP for local testing only; application-key credentials are sent unencrypted over loopback HTTP. Unsupported schemes, malformed URLs, non-URL strings, plaintext HTTP hostnames such as localhost, and non-loopback plaintext HTTP are rejected before credentials are sent. URL values must not include userinfo, query strings, or fragments. Defaults to production.