diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 89c103fdd..7e85734a9 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -155,6 +155,7 @@ "MHSM", "mmdc", "mmspecial", + "morten", "moxygen", "MSAL", "msft", @@ -175,8 +176,9 @@ "nostd", "nread", "NTSTATUS", - "odata", "Oaep", + "odata", + "ofstad", "OIDC", "okhttp", "opentelemetry", diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index c8142bfac..5a2d79cf6 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -8,7 +8,13 @@ ### Bugs Fixed -### Other Changes +- [[#4352]](https://github.com/Azure/azure-sdk-for-cpp/pull/5371) Fixed compilation error on Visual Studio 2017. (A community contribution, courtesy of _[morten-ofstad](https://github.com/morten-ofstad)_) + +### Acknowledgments + +Thank you to our developer community members who helped to make Azure Core better with their contributions to this release: + +- Morten Ofstad _([GitHub](https://github.com/morten-ofstad))_ ## 1.11.2 (2024-02-16) diff --git a/sdk/core/azure-core/src/credentials/authorization_challenge_parser.cpp b/sdk/core/azure-core/src/credentials/authorization_challenge_parser.cpp index f9d49dce9..65e2685dd 100644 --- a/sdk/core/azure-core/src/credentials/authorization_challenge_parser.cpp +++ b/sdk/core/azure-core/src/credentials/authorization_challenge_parser.cpp @@ -43,7 +43,7 @@ bool TryGetNextParameter(StringSpan& headerValue, StringSpan& paramKey, StringSp std::string const EmptyString; } // namespace -std::string const& AuthorizationChallengeHelper::GetChallenge(Http::RawResponse const& response) +std::string const& AuthorizationChallengeHelper::GetChallenge(RawResponse const& response) { // See RFC7235 (https://www.rfc-editor.org/rfc/rfc7235#section-4.1) if (response.GetStatusCode() == HttpStatusCode::Unauthorized) diff --git a/sdk/core/azure-core/src/http/bearer_token_authentication_policy.cpp b/sdk/core/azure-core/src/http/bearer_token_authentication_policy.cpp index bfce41f86..25d558486 100644 --- a/sdk/core/azure-core/src/http/bearer_token_authentication_policy.cpp +++ b/sdk/core/azure-core/src/http/bearer_token_authentication_policy.cpp @@ -14,6 +14,7 @@ using Azure::Core::Credentials::AuthenticationException; using Azure::Core::Credentials::TokenRequestContext; using Azure::Core::Credentials::_detail::AuthorizationChallengeHelper; using Azure::Core::Http::RawResponse; +using Azure::Core::Http::Request; using Azure::Core::Http::Policies::NextHttpPolicy; std::unique_ptr BearerTokenAuthenticationPolicy::Send( @@ -83,7 +84,7 @@ void ApplyBearerToken( void BearerTokenAuthenticationPolicy::AuthenticateAndAuthorizeRequest( Request& request, - Credentials::TokenRequestContext const& tokenRequestContext, + TokenRequestContext const& tokenRequestContext, Context const& context) const { DateTime const currentTime = std::chrono::system_clock::now();