Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sort-imports] update identity-cache-persistence with respect to sort-imports rule #19067

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sdk/identity/identity-cache-persistence/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { IdentityPlugin } from "@azure/identity";

import { AzurePluginContext } from "../../identity/src/plugins/provider";
import { IdentityPlugin } from "@azure/identity";
import { createPersistenceCachePlugin } from "./provider";

/**
Expand Down
6 changes: 2 additions & 4 deletions sdk/identity/identity-cache-persistence/src/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
/* eslint-disable tsdoc/syntax */

import * as path from "path";

import {
KeychainPersistence,
FilePersistence,
DataProtectionScope,
FilePersistence,
FilePersistenceWithDataProtection,
KeychainPersistence,
LibSecretPersistence,
IPersistence as Persistence
} from "@azure/msal-node-extensions";

import { TokenCachePersistenceOptions } from "@azure/identity";

/**
Expand Down
5 changes: 2 additions & 3 deletions sdk/identity/identity-cache-persistence/src/provider.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { ICachePlugin as CachePlugin } from "@azure/msal-node";
import { PersistenceCachePlugin, IPersistence as Persistence } from "@azure/msal-node-extensions";

import { MsalPersistenceOptions, msalPersistencePlatforms } from "./platforms";
import { IPersistence as Persistence, PersistenceCachePlugin } from "@azure/msal-node-extensions";
import { ICachePlugin as CachePlugin } from "@azure/msal-node";

/**
* This is used to gain access to the underlying Persistence instance, which we use for testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@

/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */

import Sinon from "sinon";
import assert from "assert";
import * as path from "path";

import { env, isPlaybackMode } from "@azure-tools/test-recorder";
import { ConfidentialClientApplication } from "@azure/msal-node";

import {
ClientCertificateCredential,
TokenCachePersistenceOptions
} from "../../../../identity/src";
import { MsalTestCleanup, msalNodeTestSetup } from "../../../../identity/test/msalTestUtils";
import { env, isPlaybackMode } from "@azure-tools/test-recorder";
import { ConfidentialClientApplication } from "@azure/msal-node";
import { MsalNode } from "../../../../identity/src/msal/nodeFlows/msalNodeCommon";

import Sinon from "sinon";
import assert from "assert";
import { createPersistence } from "./setup.spec";

const ASSET_PATH = "assets";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@

/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */

import Sinon from "sinon";
import assert from "assert";

import { env } from "@azure-tools/test-recorder";
import { ConfidentialClientApplication } from "@azure/msal-node";

import { ClientSecretCredential, TokenCachePersistenceOptions } from "../../../../identity/src";
import { MsalTestCleanup, msalNodeTestSetup } from "../../../../identity/test/msalTestUtils";
import { ConfidentialClientApplication } from "@azure/msal-node";
import { MsalNode } from "../../../../identity/src/msal/nodeFlows/msalNodeCommon";

import Sinon from "sinon";
import assert from "assert";
import { createPersistence } from "./setup.spec";
import { env } from "@azure-tools/test-recorder";

const scope = "https://graph.microsoft.com/.default";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@

/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */

import Sinon from "sinon";
import assert from "assert";

import { PublicClientApplication } from "@azure/msal-node";
import { isLiveMode } from "@azure-tools/test-recorder";

import { DeviceCodeCredential, TokenCachePersistenceOptions } from "../../../../identity/src";
import { MsalTestCleanup, msalNodeTestSetup } from "../../../../identity/test/msalTestUtils";
import { MsalNode } from "../../../../identity/src/msal/nodeFlows/msalNodeCommon";

import { PublicClientApplication } from "@azure/msal-node";
import Sinon from "sinon";
import assert from "assert";
import { createPersistence } from "./setup.spec";
import { isLiveMode } from "@azure-tools/test-recorder";

describe("DeviceCodeCredential (internal)", function(this: Mocha.Suite) {
let cleanup: MsalTestCleanup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@

/* eslint-disable @typescript-eslint/no-non-null-asserted-optional-chain */

import Sinon from "sinon";
import assert from "assert";

import { env } from "@azure-tools/test-recorder";
import { PublicClientApplication } from "@azure/msal-node";

import { UsernamePasswordCredential, TokenCachePersistenceOptions } from "../../../../identity/src";
import { MsalTestCleanup, msalNodeTestSetup } from "../../../../identity/test/msalTestUtils";
import { TokenCachePersistenceOptions, UsernamePasswordCredential } from "../../../../identity/src";
import { MsalNode } from "../../../../identity/src/msal/nodeFlows/msalNodeCommon";

import { PublicClientApplication } from "@azure/msal-node";
import Sinon from "sinon";
import assert from "assert";
import { createPersistence } from "./setup.spec";
import { env } from "@azure-tools/test-recorder";

describe("UsernamePasswordCredential (internal)", function(this: Mocha.Suite) {
let cleanup: MsalTestCleanup;
Expand Down