From 9d3b48852449c861e0915337ae62a44c6fc67650 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Thu, 3 Dec 2020 22:21:47 -0800 Subject: [PATCH] Remove last pieces of Storage libs dependency on Identity (#1079) --- .../inc/azure/storage/blobs/append_blob_client.hpp | 4 ++-- .../inc/azure/storage/blobs/blob_client.hpp | 4 ++-- .../inc/azure/storage/blobs/blob_container_client.hpp | 4 ++-- .../inc/azure/storage/blobs/blob_service_client.hpp | 4 ++-- .../inc/azure/storage/blobs/block_blob_client.hpp | 4 ++-- .../inc/azure/storage/blobs/page_blob_client.hpp | 4 ++-- sdk/storage/azure-storage-blobs/test/blob_sas_test.cpp | 1 + .../storage/files/datalake/datalake_directory_client.hpp | 4 ++-- .../inc/azure/storage/files/datalake/datalake_file_client.hpp | 4 ++-- .../storage/files/datalake/datalake_file_system_client.hpp | 4 ++-- .../inc/azure/storage/files/datalake/datalake_path_client.hpp | 4 ++-- .../azure/storage/files/datalake/datalake_service_client.hpp | 4 ++-- .../test/datalake_directory_client_test.cpp | 1 + .../test/datalake_file_client_test.cpp | 1 + .../test/datalake_file_system_client_test.cpp | 1 + .../test/datalake_path_client_test.cpp | 1 + .../azure-storage-files-datalake/test/datalake_sas_test.cpp | 1 + 17 files changed, 28 insertions(+), 22 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp index 007e98d93..df5956ec3 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_client.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/protocol/blob_rest_client.hpp" @@ -62,7 +62,7 @@ namespace Azure { namespace Storage { namespace Blobs { * @param blobUrl A url * referencing the blob that includes the name of the account, the name of the container, and * the name of the blob. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp index 94e76f9a7..36d003b5a 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/blob_responses.hpp" #include "azure/storage/blobs/protocol/blob_rest_client.hpp" @@ -65,7 +65,7 @@ namespace Azure { namespace Storage { namespace Blobs { * * @param blobUrl A url referencing the blob that includes the name of the account, the name of * the container, and the name of the blob. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp index 889095a84..9adbb7800 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_client.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/protocol/blob_rest_client.hpp" @@ -58,7 +58,7 @@ namespace Azure { namespace Storage { namespace Blobs { * @param blobContainerUrl A url * referencing the blob container that includes the name of the account and the name of the * container. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp index bce0ec8e3..52a4c98e7 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_container_client.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/protocol/blob_rest_client.hpp" @@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Blobs { * @brief Initialize a new instance of BlobServiceClient. * * @param serviceUrl A url referencing the blob that includes the name of the account. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp index 4cd1ce572..c25393c6c 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_client.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/protocol/blob_rest_client.hpp" @@ -72,7 +72,7 @@ namespace Azure { namespace Storage { namespace Blobs { * @param blobUrl A url * referencing the blob that includes the name of the account, the name of the container, and * the name of the blob. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp index 503132405..92f0ab1c8 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp @@ -3,7 +3,7 @@ #pragma once -#include "azure/identity/client_secret_credential.hpp" +#include "azure/core/credentials.hpp" #include "azure/storage/blobs/blob_client.hpp" #include "azure/storage/blobs/blob_options.hpp" #include "azure/storage/blobs/blob_responses.hpp" @@ -64,7 +64,7 @@ namespace Azure { namespace Storage { namespace Blobs { * @param blobUrl A url * referencing the blob that includes the name of the account, the name of the container, and * the name of the blob. - * @param credential The client secret credential used to sign requests. + * @param credential The token credential used to sign requests. * @param options Optional client options that define the transport pipeline policies for * authentication, retries, etc., that are applied to every request. */ diff --git a/sdk/storage/azure-storage-blobs/test/blob_sas_test.cpp b/sdk/storage/azure-storage-blobs/test/blob_sas_test.cpp index 344c07861..2716fb272 100644 --- a/sdk/storage/azure-storage-blobs/test/blob_sas_test.cpp +++ b/sdk/storage/azure-storage-blobs/test/blob_sas_test.cpp @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT +#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/blob_sas_builder.hpp" #include "blob_container_client_test.hpp" diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp index 70a3e4e9d..512ec769a 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp @@ -3,9 +3,9 @@ #pragma once +#include "azure/core/credentials.hpp" #include "azure/core/http/pipeline.hpp" #include "azure/core/response.hpp" -#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/common/storage_credential.hpp" #include "azure/storage/files/datalake/datalake_options.hpp" #include "azure/storage/files/datalake/datalake_path_client.hpp" @@ -47,7 +47,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Bearer token authentication client. * @param directoryUri The URI of the file system this client's request targets. - * @param credential The client secret credential used to initialize the client. + * @param credential The token credential used to initialize the client. * @param options Optional parameters used to initialize the client. */ explicit DirectoryClient( diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp index d0b28b57f..4215aa1d7 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp @@ -3,9 +3,9 @@ #pragma once +#include "azure/core/credentials.hpp" #include "azure/core/http/pipeline.hpp" #include "azure/core/response.hpp" -#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/block_blob_client.hpp" #include "azure/storage/common/storage_credential.hpp" #include "azure/storage/files/datalake/datalake_options.hpp" @@ -48,7 +48,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Bearer token authentication client. * @param fileUri The URI of the file this client's request targets. - * @param credential The client secret credential used to initialize the client. + * @param credential The token credential used to initialize the client. * @param options Optional parameters used to initialize the client. */ explicit FileClient( diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp index eab4cc19c..80c26b840 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp @@ -3,9 +3,9 @@ #pragma once +#include "azure/core/credentials.hpp" #include "azure/core/http/pipeline.hpp" #include "azure/core/response.hpp" -#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/blob_container_client.hpp" #include "azure/storage/common/storage_credential.hpp" #include "azure/storage/files/datalake/datalake_options.hpp" @@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Bearer token authentication client. * @param fileSystemUri The URI of the file system this client's request targets. - * @param credential The client secret credential used to initialize the client. + * @param credential The token credential used to initialize the client. * @param options Optional parameters used to initialize the client. */ explicit FileSystemClient( diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp index ea8f66f45..d5117c99e 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp @@ -3,9 +3,9 @@ #pragma once +#include "azure/core/credentials.hpp" #include "azure/core/http/pipeline.hpp" #include "azure/core/response.hpp" -#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/blob_client.hpp" #include "azure/storage/common/storage_credential.hpp" #include "azure/storage/files/datalake/datalake_file_system_client.hpp" @@ -48,7 +48,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Bearer token authentication client. * @param pathUri The URI of the path this client's request targets. - * @param credential The client secret credential used to initialize the client. + * @param credential The token credential used to initialize the client. * @param options Optional parameters used to initialize the client. */ explicit PathClient( diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp index fc6aa0115..7124cdbaf 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp @@ -3,9 +3,9 @@ #pragma once +#include "azure/core/credentials.hpp" #include "azure/core/http/pipeline.hpp" #include "azure/core/response.hpp" -#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/blob_service_client.hpp" #include "azure/storage/common/storage_credential.hpp" #include "azure/storage/files/datalake/datalake_options.hpp" @@ -45,7 +45,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { /** * @brief Bearer token authentication client. * @param serviceUri The service URI this client's request targets. - * @param credential The client secret credential used to initialize the client. + * @param credential The token credential used to initialize the client. * @param options Optional parameters used to initialize the client. */ explicit DataLakeServiceClient( diff --git a/sdk/storage/azure-storage-files-datalake/test/datalake_directory_client_test.cpp b/sdk/storage/azure-storage-files-datalake/test/datalake_directory_client_test.cpp index 47af9c717..79ce94988 100644 --- a/sdk/storage/azure-storage-files-datalake/test/datalake_directory_client_test.cpp +++ b/sdk/storage/azure-storage-files-datalake/test/datalake_directory_client_test.cpp @@ -3,6 +3,7 @@ #include "datalake_directory_client_test.hpp" +#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/common/shared_key_policy.hpp" #include diff --git a/sdk/storage/azure-storage-files-datalake/test/datalake_file_client_test.cpp b/sdk/storage/azure-storage-files-datalake/test/datalake_file_client_test.cpp index b7fd41bae..53d71788d 100644 --- a/sdk/storage/azure-storage-files-datalake/test/datalake_file_client_test.cpp +++ b/sdk/storage/azure-storage-files-datalake/test/datalake_file_client_test.cpp @@ -3,6 +3,7 @@ #include "datalake_file_client_test.hpp" +#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs.hpp" #include "azure/storage/common/file_io.hpp" #include "azure/storage/common/shared_key_policy.hpp" diff --git a/sdk/storage/azure-storage-files-datalake/test/datalake_file_system_client_test.cpp b/sdk/storage/azure-storage-files-datalake/test/datalake_file_system_client_test.cpp index cddf08af3..9dcb162b2 100644 --- a/sdk/storage/azure-storage-files-datalake/test/datalake_file_system_client_test.cpp +++ b/sdk/storage/azure-storage-files-datalake/test/datalake_file_system_client_test.cpp @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT +#include "azure/identity/client_secret_credential.hpp" #include "datalake_file_system_client_test.hpp" #include "azure/storage/common/crypt.hpp" #include "azure/storage/files/datalake/datalake_options.hpp" diff --git a/sdk/storage/azure-storage-files-datalake/test/datalake_path_client_test.cpp b/sdk/storage/azure-storage-files-datalake/test/datalake_path_client_test.cpp index 512c90c77..e3724c6a3 100644 --- a/sdk/storage/azure-storage-files-datalake/test/datalake_path_client_test.cpp +++ b/sdk/storage/azure-storage-files-datalake/test/datalake_path_client_test.cpp @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT +#include "azure/identity/client_secret_credential.hpp" #include "datalake_path_client_test.hpp" #include diff --git a/sdk/storage/azure-storage-files-datalake/test/datalake_sas_test.cpp b/sdk/storage/azure-storage-files-datalake/test/datalake_sas_test.cpp index d57d96775..2290cb526 100644 --- a/sdk/storage/azure-storage-files-datalake/test/datalake_sas_test.cpp +++ b/sdk/storage/azure-storage-files-datalake/test/datalake_sas_test.cpp @@ -1,6 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // SPDX-License-Identifier: MIT +#include "azure/identity/client_secret_credential.hpp" #include "azure/storage/blobs/blob_sas_builder.hpp" #include "azure/storage/files/datalake/datalake_sas_builder.hpp" #include "datalake_file_system_client_test.hpp"