Class DatabricksTokenFederationProvider
java.lang.Object
com.databricks.jdbc.auth.DatabricksTokenFederationProvider
- All Implemented Interfaces:
com.databricks.sdk.core.CredentialsProvider,com.databricks.sdk.core.oauth.TokenSource
public class DatabricksTokenFederationProvider
extends Object
implements com.databricks.sdk.core.CredentialsProvider, com.databricks.sdk.core.oauth.TokenSource
Implementation of the Credential Provider that exchanges the third party access token for a
Databricks InHouse Token This class exchanges the access token if the issued token is not from
the same host as the Databricks host.
Note: In future this class will be replaced with the Databricks SDK implementation
-
Constructor Summary
ConstructorsConstructorDescriptionDatabricksTokenFederationProvider(IDatabricksConnectionContext connectionContext, com.databricks.sdk.core.CredentialsProvider credentialsProvider) -
Method Summary
-
Constructor Details
-
DatabricksTokenFederationProvider
public DatabricksTokenFederationProvider(IDatabricksConnectionContext connectionContext, com.databricks.sdk.core.CredentialsProvider credentialsProvider)
-
-
Method Details
-
authType
- Specified by:
authTypein interfacecom.databricks.sdk.core.CredentialsProvider
-
getCredentialsProvider
public com.databricks.sdk.core.CredentialsProvider getCredentialsProvider() -
configure
public com.databricks.sdk.core.HeaderFactory configure(com.databricks.sdk.core.DatabricksConfig databricksConfig) - Specified by:
configurein interfacecom.databricks.sdk.core.CredentialsProvider
-
getToken
public com.databricks.sdk.core.oauth.Token getToken()- Specified by:
getTokenin interfacecom.databricks.sdk.core.oauth.TokenSource
-