Creates a TokenCredentials that authenticates as a Databricks service principal using the OAuth client credentials grant.
The returned credentials do not cache tokens or retry on failure. Wrap them with newCachedTokenProvider as needed.
newCachedTokenProvider
Host plus client credentials.
M2mCredentialsError when host, clientId, or clientSecret is empty, when token-endpoint discovery fails, or when the token endpoint returns an error.
Creates a TokenCredentials that authenticates as a Databricks service principal using the OAuth client credentials grant.
The returned credentials do not cache tokens or retry on failure. Wrap them with
newCachedTokenProvideras needed.