Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

### Documentation

* Clarify behavior and expectation for method `CredentialsProvider.configure()` to return a new `HeaderFactory` instance on each invocation.

### Internal Changes

### API Changes
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
package com.databricks.sdk.core;

/**
* CredentialsProvider is an interface that provides a HeaderFactory to authenticate requests to the
* Databricks API.
*/
public interface CredentialsProvider {
/**
* Returns the authentication type identifier for this credentials provider.
*
* @return the authentication type as a string
*/
String authType();

/**
* Creates and returns a new HeaderFactory to authenticate requests to the Databricks API.
*
* <p>Note: A new HeaderFactory instance is returned on each invocation.
*
* @param config the Databricks configuration to use for authentication
* @return a new HeaderFactory configured for authenticating API requests
*/
HeaderFactory configure(DatabricksConfig config);
}
Loading