diff --git a/sdk/tables/azure-data-tables/CHANGELOG.md b/sdk/tables/azure-data-tables/CHANGELOG.md index 2a11c50f5..a5e310919 100644 --- a/sdk/tables/azure-data-tables/CHANGELOG.md +++ b/sdk/tables/azure-data-tables/CHANGELOG.md @@ -6,6 +6,7 @@ ### Breaking Changes +- Removed the `TablesAudience` field from `TableClientOptions` since it is not required. - Removed ServiceVersion type and changed the ApiVersion field within `TableClientOptions` to be std::string. - Removed the `TableServiceClient` constructor that only accepts one defaulted options parameter. diff --git a/sdk/tables/azure-data-tables/inc/azure/data/tables/tables_clients.hpp b/sdk/tables/azure-data-tables/inc/azure/data/tables/tables_clients.hpp index 4d2eab04c..ceff9d62d 100644 --- a/sdk/tables/azure-data-tables/inc/azure/data/tables/tables_clients.hpp +++ b/sdk/tables/azure-data-tables/inc/azure/data/tables/tables_clients.hpp @@ -70,27 +70,6 @@ namespace Azure { namespace Data { namespace Tables { constexpr static const char* ODataError = "odata.error"; } // namespace _detail - /** - * @brief Audiences available for Blobs - * - */ - class TablesAudience final - : public Azure::Core::_internal::ExtendableEnumeration { - public: - /** - * @brief Construct a new TablesAudience object - * - * @param tablesAudience The Azure Active Directory audience to use when forming authorization - * scopes. For the Language service, this value corresponds to a URL that identifies the Azure - * cloud where the resource is located. For more information: See - * https://learn.microsoft.com/en-us/azure/storage/blobs/authorize-access-azure-active-directory - */ - explicit TablesAudience(std::string tablesAudience) - : ExtendableEnumeration(std::move(tablesAudience)) - { - } - }; - /** * @brief Optional parameters for constructing a new TableClient. */ @@ -107,12 +86,6 @@ namespace Azure { namespace Data { namespace Tables { * to prompt a challenge in order to discover the correct tenant for the resource. */ bool EnableTenantDiscovery = false; - - /** - * The Audience to use for authentication with Azure Active Directory (AAD). - * - */ - Azure::Nullable Audience; }; /** diff --git a/sdk/tables/azure-data-tables/src/tables_clients.cpp b/sdk/tables/azure-data-tables/src/tables_clients.cpp index 89fbcd5bc..e244bf7ae 100644 --- a/sdk/tables/azure-data-tables/src/tables_clients.cpp +++ b/sdk/tables/azure-data-tables/src/tables_clients.cpp @@ -52,9 +52,7 @@ TableServiceClient::TableServiceClient( perRetryPolicies.emplace_back(std::make_unique()); { Azure::Core::Credentials::TokenRequestContext tokenContext; - tokenContext.Scopes.emplace_back( - newOptions.Audience.HasValue() ? newOptions.Audience.Value().ToString() - : m_url.GetAbsoluteUrl() + "/.default"); + tokenContext.Scopes.emplace_back(m_url.GetAbsoluteUrl() + "/.default"); perRetryPolicies.emplace_back(std::make_unique( credential, tokenContext, newOptions.EnableTenantDiscovery)); @@ -336,9 +334,7 @@ TableClient::TableClient( perRetryPolicies.emplace_back(std::make_unique()); { Azure::Core::Credentials::TokenRequestContext tokenContext; - tokenContext.Scopes.emplace_back( - newOptions.Audience.HasValue() ? newOptions.Audience.Value().ToString() - : m_url.GetAbsoluteUrl() + "/.default"); + tokenContext.Scopes.emplace_back(m_url.GetAbsoluteUrl() + "/.default"); perRetryPolicies.emplace_back(std::make_unique( credential, tokenContext, newOptions.EnableTenantDiscovery));