Skip to content

Commit

Permalink
Use TokenCredential from core-auth than identity (#13677)
Browse files Browse the repository at this point in the history
Use `TokenCredential` from `core-auth` instead of `identity` package so that the latter need not be pulled into dependencies list from devDependencies in #13670
  • Loading branch information
ramya-rao-a authored Feb 9, 2021
1 parent 82d3fda commit 883aba8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { PipelineOptions } from '@azure/core-http';
import { PollerLike } from '@azure/core-lro';
import { PollOperationState } from '@azure/core-lro';
import { RestResponse } from '@azure/core-http';
import { TokenCredential } from '@azure/identity';
import { TokenCredential } from '@azure/core-auth';

// @public
export interface AccountProperties {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
operationOptionsToRequestOptionsBase,
OperationOptions
} from "@azure/core-http";
import { TokenCredential } from "@azure/identity";
import { KeyCredential } from "@azure/core-auth";
import { TokenCredential, KeyCredential } from "@azure/core-auth";
import {
SDK_VERSION,
DEFAULT_COGNITIVE_SCOPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ import {
operationOptionsToRequestOptionsBase,
RestResponse
} from "@azure/core-http";
import { TokenCredential } from "@azure/identity";
import { KeyCredential } from "@azure/core-auth";
import { TokenCredential, KeyCredential } from "@azure/core-auth";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import "@azure/core-paging";
import {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { OperationOptions } from '@azure/core-http';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { PipelineOptions } from '@azure/core-http';
import { RestResponse } from '@azure/core-http';
import { TokenCredential } from '@azure/identity';
import { TokenCredential } from '@azure/core-auth';

// @public
export interface AlertConfigurationsPageResponse extends Array<AnomalyAlertConfiguration> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
isTokenCredential
} from "@azure/core-http";

import { TokenCredential } from "@azure/identity";
import { TokenCredential } from "@azure/core-auth";

import {
LIB_INFO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
OperationOptions,
RestResponse
} from "@azure/core-http";
import { TokenCredential } from "@azure/identity";
import { TokenCredential } from "@azure/core-auth";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import "@azure/core-paging";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "@azure/core-http";
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
import "@azure/core-paging";
import { TokenCredential } from "@azure/identity";
import { TokenCredential } from "@azure/core-auth";
import { GeneratedClient } from "./generated/generatedClient";
import { createSpan } from "./tracing";
import { MetricsAdvisorKeyCredential } from "./metricsAdvisorKeyCredentialPolicy";
Expand Down

0 comments on commit 883aba8

Please sign in to comment.