Prerequisites
To use the OAuthClient authentication method, you must create a service principle in Databricks Lakebase and assign permissions. Refer to the Databricks documentation. Next, the account or workspace administrator creates an OAuth secret:At the new service principal’s details page, in the Developer Service Principal section, click the Secrets tab.
Enter the desired lifetime for the secret in days, up to a maximum of 730 days (two years). The admin console displays updated details about the new service principal, including the OAuth secret and the Client ID (which is the same as the service principal’s application ID).
セットアップガイド
以下の手順で、Databricks Lakebase をConnect AI アカウントに接続します。For Databricks Instance, enter the URL for the user interface during normal access of the Databricks console. This should be in the format of
dbc-(id).cloud.databricks.com.Enter the Port number of the server hosting the Databricks Lakebase database. The default value is 5432.
Authentication Methods
- OAuthClient
- OAuthPKCE
Enter the OAuthClientSecret assigned when you configured the service principal (in the prerequisites). This value authenticates the application to the OAuth authorization server.
Connect AI Connection ページ上部の、Save & Test をクリックします。
- 接続テストに成功すると、コネクションが作成されたことを示すConnection successfully saved というメッセージが表示されます。Edit Connection ページのStatus もAuthenticated に変わります。Edit Connection ページの右ペインにあるData Model タブで、成功したコネクションのデータモデルを表示します。
- 接続テストに失敗した場合は、入力したログイン情報に余分なスペースや文字がないかを確認してください。Connect AI は、データが不足している必須フィールドの下にエラーメッセージを表示します。一部のデータソースでは、ソースのWeb サイトに直接サインインする必要があります。サインインしていない場合は、Sign in ボタンの下にエラーメッセージが表示されます。エラーを修正し、もう一度試してください。
- 失敗したコネクションは下書きとして保存され、Status はNot Authenticated になります。後でコネクションに戻って認証することができます。