メインコンテンツまでスキップ

パートナー OAuth トークンの有効期間ポリシーの上書き

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

注記

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

始める前に

OAuth トークンの有効期間ポリシーを上書きする前に、次の操作を行います。

dbt Core、 Power BI、 Tableau Desktop 、Tableau Cloudまたは Windows のデフォルト トークン 有効期間 ポリシーの上書き

dbt Core、 Power BI、 Tableau Desktop 、または Tableau Cloudのデフォルト トークン ライフサイクル ポリシー (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> を OAuth アプリケーションの統合 ID に置き換えます。たとえば、 c1b137c2-b832-1abc-ad12-995a0209e213.
  • <new-access-token-ttl> を新しいアクセス トークンの有効期間に置き換えます。
  • <new-refresh-token-ttl> を新しい更新トークンの有効期間に置き換えます。

Tableau Cloud または Tableau Serverのデフォルト トークンの有効期間ポリシーの上書き

Tableau Cloud または 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> を新しい更新トークンの有効期間に置き換えます。