Override パートナー OAuth トークン ライフタイム ポリシー

この記事では、既存のパートナー OAuth アプリケーションの OAuth トークン有効期間ポリシーをオーバーライドする方法について説明します。

パートナー OAuth アプリケーションの更新の処理には 30 分かかる場合があります。

始める前に

OAuthトークンの有効期間ポリシーをオーバーライドする前に、次の操作を行います。

dbt コア、Power BI、または Tableau Desktop のデフォルト トークンの有効期間ポリシーを上書きする

dbt Core、Power BI、または Tableau Desktop のデフォルト トークン ライフサイクル ポリシー (token_access_policy) をオーバーライドするには、次のコマンドを実行します。

databricks account published-app-integration update <integration-id> --json '{"token_access_policy": {"access_token_ttl_in_minutes": <new-access-token-ttl>,"refresh_token_ttl_in_minutes":<new-refresh-token-ttl>}}'
  • <integration-id>databricks-dbt-adapterpower-bi、または tableau-desktopに置き換えます。

  • <new-access-token-ttl> を新しいアクセストークンの有効期間に置き換えます。

  • <new-refresh-token-ttl> を新しい更新トークンの有効期間に置き換えます。

Tableau Cloud または Tableau Server の既定のトークン有効期間ポリシーを上書きする

Tableau クラウドまたは Tableau Server のデフォルト トークン ライフサイクル ポリシー (token_access_policy) をオーバーライドするには、次のコマンドを実行します。

databricks account custom-app-integration update <integration-id> --json '{"token_access_policy": {"access_token_ttl_in_minutes": <new-access-token-ttl>,"refresh_token_ttl_in_minutes":<new-refresh-token-ttl>}}'
  • <integration-id> を、変更する OAuth アプリケーションの統合 ID に置き換えます。

  • <new-access-token-ttl> を新しいアクセストークンの有効期間に置き換えます。

  • <new-refresh-token-ttl> を新しい更新トークンの有効期間に置き換えます。