Skip to content

Commit

Permalink
[KeyVault] - Migrate KeyVault Certificates, Keys and Secrets to Core …
Browse files Browse the repository at this point in the history
…V2 (#21702)
  • Loading branch information
JonathanCrd authored Jul 6, 2022
1 parent 18d3723 commit 8f72772
Show file tree
Hide file tree
Showing 649 changed files with 100,121 additions and 294,289 deletions.
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-admin/src/accessControlClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging";
import { RoleAssignmentsListForScopeOptionalParams } from "./generated/models";
import { TokenCredential } from "@azure/core-auth";
import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
import { createChallengeCallbacks } from "./challengeAuthenticationCallbacks";
import { createChallengeCallbacks } from "../../keyvault-common/src";
import { logger } from "./log";
import { mappings } from "./mappings";
import { tracingClient } from "./tracing";
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-admin/src/backupClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { LATEST_API_VERSION } from "./constants";
import { PollerLike } from "@azure/core-lro";
import { TokenCredential } from "@azure/core-auth";
import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline";
import { createChallengeCallbacks } from "./challengeAuthenticationCallbacks";
import { createChallengeCallbacks } from "../../keyvault-common/src";
import { logger } from "./log";
import { mappings } from "./mappings";

Expand Down
143 changes: 0 additions & 143 deletions sdk/keyvault/keyvault-admin/src/challengeAuthenticationCallbacks.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import { assert } from "@azure/test-utils";
import { createChallengeCallbacks } from "../../src/challengeAuthenticationCallbacks";
import { createChallengeCallbacks } from "../../../keyvault-common/src/";
import {
AuthorizeRequestOptions,
ChallengeCallbacks,
Expand Down Expand Up @@ -118,15 +118,15 @@ describe("Challenge based authentication tests", function () {
request,
response: {
headers: createHttpHeaders({
"WWW-Authenticate": `Bearer scope="cae_scope"`,
"WWW-Authenticate": `Bearer resource="cae_scope"`,
}),
request,
status: 200,
},
scopes: [],
});

assert.sameMembers(getAccessTokenScopes, ["cae_scope"]);
assert.sameMembers(getAccessTokenScopes, ["cae_scope/.default"]);
});

it("prefers resource scope and adds .default to resource when provided", async () => {
Expand Down
9 changes: 7 additions & 2 deletions sdk/keyvault/keyvault-certificates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,13 @@
},
"dependencies": {
"@azure/abort-controller": "^1.0.0",
"@azure/core-http": "^2.0.0",
"@azure/core-client": "^1.5.0",
"@azure/core-http-compat": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-lro": "^2.2.0",
"@azure/core-paging": "^1.1.1",
"@azure/core-util": "^1.0.0",
"@azure/core-tracing": "^1.0.0",
"@azure/logger": "^1.0.0",
"tslib": "^2.2.0"
Expand All @@ -119,8 +123,9 @@
"@azure/identity": "^2.1.0-beta.2",
"@azure/keyvault-secrets": "^4.2.0",
"@azure/test-utils": "^1.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-recorder": "^1.0.0",
"@microsoft/api-extractor": "7.18.11",
"@microsoft/api-extractor": "^7.18.11",
"@types/mocha": "^7.0.2",
"@types/node": "^12.0.0",
"@types/sinon": "^9.0.4",
Expand Down
Loading

0 comments on commit 8f72772

Please sign in to comment.