Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ using Azure::Core::Context;
using Azure::Core::Credentials::AuthenticationException;
using Azure::Core::Credentials::TokenRequestContext;
using Azure::Core::Credentials::_detail::AuthorizationChallengeHelper;
using Azure::Core::Http::Request;
Comment thread
morten-ofstad marked this conversation as resolved.
Outdated
using Azure::Core::Http::RawResponse;
using Azure::Core::Http::Policies::NextHttpPolicy;

Expand Down Expand Up @@ -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();
Expand Down