File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
packages/databricks-vscode/src Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,11 @@ export class CliWrapper {
195195 return [ ] ;
196196 }
197197
198- const profiles = JSON . parse ( res . stdout ) . profiles || [ ] ;
198+ let profiles = JSON . parse ( res . stdout ) . profiles || [ ] ;
199+
200+ // filter out account profiles
201+ profiles = profiles . filter ( ( p : any ) => ! p . account_id ) ;
202+
199203 const result = [ ] ;
200204
201205 for ( const profile of profiles ) {
Original file line number Diff line number Diff line change @@ -469,11 +469,11 @@ async function validateDatabricksHost(
469469
470470function authMethodsForHostname ( host : URL ) : Array < AuthType > {
471471 if ( UrlUtils . isAzureHost ( host ) ) {
472- return [ "azure-cli" , "pat" ] ;
472+ return [ "databricks-cli" , " azure-cli", "pat" ] ;
473473 }
474474
475475 if ( UrlUtils . isGcpHost ( host ) ) {
476- return [ "pat" ] ;
476+ return [ "databricks-cli" , "google-id" , " pat"] ;
477477 }
478478
479479 if ( UrlUtils . isAwsHost ( host ) ) {
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ import {DatabricksCliCheck} from "./DatabricksCliCheck";
1818import { Loggers } from "../../logger" ;
1919
2020// TODO: Resolve this with SDK's AuthType.
21- export type AuthType = "azure-cli" | "databricks-cli" | "profile" | "pat" ;
21+ export type AuthType =
22+ | "azure-cli"
23+ | "databricks-cli"
24+ | "google-id"
25+ | "profile"
26+ | "pat" ;
2227
2328export abstract class AuthProvider {
2429 constructor (
You can’t perform that action at this time.
0 commit comments