public class ExternalBrowserCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider which implements the Authorization Code + PKCE flow by opening a
browser for the user to authorize the application. Uses a specified TokenCache or creates a
default one if none is provided.| Constructor and Description |
|---|
ExternalBrowserCredentialsProvider()
Creates a new ExternalBrowserCredentialsProvider with a default TokenCache.
|
ExternalBrowserCredentialsProvider(TokenCache tokenCache)
Creates a new ExternalBrowserCredentialsProvider with the specified TokenCache.
|
| Modifier and Type | Method and Description |
|---|---|
String |
authType() |
OAuthHeaderFactory |
configure(DatabricksConfig config) |
public ExternalBrowserCredentialsProvider(TokenCache tokenCache)
tokenCache - the TokenCache to use for caching tokenspublic ExternalBrowserCredentialsProvider()
public String authType()
authType in interface CredentialsProviderpublic OAuthHeaderFactory configure(DatabricksConfig config)
configure in interface CredentialsProviderCopyright © 2025. All rights reserved.