w.credentials_manager: Credentials Manager

class databricks.sdk.service.settings.CredentialsManagerAPI

Credentials manager interacts with with Identity Providers to to perform token exchanges using stored credentials and refresh tokens.

exchange_token(partition_id: PartitionId, token_type: List[TokenType], scopes: List[str]) ExchangeTokenResponse

Exchange token.

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

Parameters:
  • partition_idPartitionId The partition of Credentials store

  • token_type – List[TokenType] A list of token types being requested

  • scopes – List[str] Array of scopes for the token request.

Returns:

ExchangeTokenResponse