Skip to content

Commit

Permalink
Change HTTP request to axios (#24549)
Browse files Browse the repository at this point in the history
* change request to axios

* fix typo

* remove httpClient

* fix build

* change azurenetworkresponse to axiosresponse
  • Loading branch information
cssuh authored Oct 4, 2023
1 parent c641865 commit 186f8d3
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 478 deletions.
5 changes: 1 addition & 4 deletions extensions/azurecore/src/account-provider/auths/azureAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ import { MemoryDatabase } from '../utils/memoryDatabase';
import { Logger } from '../../utils/Logger';
import { AzureAuthError } from './azureAuthError';
import { AccountInfo, AuthError, AuthenticationResult, InteractionRequiredAuthError, PublicClientApplication } from '@azure/msal-node';
import { HttpClient } from './httpClient';
import { getProxyEnabledHttpClient, getTenantIgnoreList, updateTenantIgnoreList } from '../../utils';
import { getTenantIgnoreList, updateTenantIgnoreList } from '../../utils';
import { errorToPromptFailedResult } from './networkUtils';
import { MsalCachePluginProvider } from '../utils/msalCachePlugin';
import { isErrorResponseBodyWithError } from '../../azureResource/utils';
Expand All @@ -45,7 +44,6 @@ export abstract class AzureAuth implements vscode.Disposable {
protected readonly scopesString: string;
protected readonly clientId: string;
protected readonly resources: Resource[];
protected readonly httpClient: HttpClient;
private readonly _disposableStore: vscode.Disposable[];

constructor(
Expand Down Expand Up @@ -100,7 +98,6 @@ export abstract class AzureAuth implements vscode.Disposable {

this.scopes = [...this.metadata.settings.scopes];
this.scopesString = this.scopes.join(' ');
this.httpClient = getProxyEnabledHttpClient();
this._disposableStore.push(this.uriEventEmitter);
}

Expand Down
Loading

0 comments on commit 186f8d3

Please sign in to comment.