Databricks SDK for JavaScript
    Preparing search index...
    Index

    Constructors

    Methods

    • Exchange tokens with an Identity Provider to get a new access token. It allows specifying scopes to determine token permissions.

      POST /exchange-tokens/token is the documented public form, expressed via google.api.http below. GET /exchange-tokens/$exchange is a legacy alias used by the Spark driver's OAuth refresh path (DBHttpClient#get sends a body via HttpGetWithEntity) and stays on the legacy option (rpc).endpoints annotation: its path contains a literal $, which google.api.http's LITERAL grammar does not allow, and HttpPathParser does not percent-decode template segments (so encoding as %24exchange would not match the literal $exchange path the Spark driver sends). Per-endpoint visibility: PUBLIC_UNDOCUMENTED preserves the DECO-7732 intent of suppressing the GET alias from the public API spec.

      Parameters

      Returns Promise<ExchangeTokenExchangeRequest_Response>