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

パートナー OAuth トークンの有効期間ポリシーをオーバーライドする

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

注記

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

始める前に

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

dbt Core、 Power BI、 Tableau Desktop 、または Windows のデフォルト トークン lifetime ポリシーをオーバーライドしますTableau Cloud

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の デフォルト トークン lifecycle ポリシー (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> を新しい更新トークンの有効期間に置き換えます。