Class DatabricksTokenFederationProvider

  • All Implemented Interfaces:
    com.databricks.sdk.core.CredentialsProvider, com.databricks.sdk.core.oauth.TokenSource

    public class DatabricksTokenFederationProvider
    extends com.databricks.sdk.core.oauth.RefreshableTokenSource
    implements com.databricks.sdk.core.CredentialsProvider
    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 Detail

      • DatabricksTokenFederationProvider

        public DatabricksTokenFederationProvider​(IDatabricksConnectionContext connectionContext,
                                                 com.databricks.sdk.core.CredentialsProvider credentialsProvider)
    • Method Detail

      • authType

        public String authType()
        Specified by:
        authType in interface com.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:
        configure in interface com.databricks.sdk.core.CredentialsProvider
      • refresh

        protected com.databricks.sdk.core.oauth.Token refresh()
        Specified by:
        refresh in class com.databricks.sdk.core.oauth.RefreshableTokenSource