cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Databricks JDBC driver attempting to pass access token (JWT) from an external IDP (OKTA)

151640
New Contributor III

Configured a Databricks workspace for SSO to an IDP (OKTA).
Databricks JDBC driver 02.06.38.1068

Attempting to connect to Databricks using a URL similar to following where access token is obtained from the IDP (OKTA). Using tool such as SQLSquirrel with the driver fails.

jdbc:databricks://dbc-xxxx-yyyy.cloud.databricks.com:443/default;transportMode=http;ssl=1;AuthMech=11;Auth_Flow=0;httpPath=/sql/1.0/endpoints/9xxxxxxx59;Auth_AccessToken=token-here;


[Databricks][JDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 400, Error message: Authorization related error response returned, but no token expired message received.
java.sql.SQLException: [Databricks][JDBCDriver](500593) Communication link failure. Failed to connect to server. Reason: HTTP Response code: 400, Error message: Authorization related error response returned, but no token expired message received.
at com.databricks.client.hivecommon.api.HS2Client.handleTTransportException(Unknown Source)
at com.databricks.client.spark.jdbc.DownloadableFetchClient.handleTTransportException(Unknown Source)
at com.databricks.client.hivecommon.api.HS2Client.openSession(Unknown Source)

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @151640,

 

151640
New Contributor III

Yes, latest version 02.06.38.1068

Would like to know if other persons have successfully passed access tokens from an external IDP via the driver.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group