Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test S3express [Draft] #3271

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -21,6 +21,7 @@ Aws::Auth::S3ExpressSignerProvider::S3ExpressSignerProvider(
region,
signingPolicy,
urlEscapePath) {
m_signers.clear();
m_signers.emplace_back(Aws::MakeShared<Aws::S3::S3ExpressSigner>(CLASS_TAG,
S3ExpressIdentityProvider,
credentialsProvider,
Expand Down
1 change: 1 addition & 0 deletions src/aws-cpp-sdk-core/source/client/AWSClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ void AWSClient::AppendToUserAgent(const Aws::String& valueToAppend)

Aws::Client::AWSAuthSigner* AWSClient::GetSignerByName(const char* name) const
{
std::cout<<"get signer "<<name<<std::endl;
const auto& signer = m_signerProvider->GetSigner(name);
return signer ? signer.get() : nullptr;
}
Expand Down
4 changes: 3 additions & 1 deletion src/aws-cpp-sdk-core/source/client/AWSXmlClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ XmlOutcome AWSXMLClient::MakeRequest(const Aws::AmazonWebServiceRequest& request
signerServiceNameOverride = endpoint.GetAttributes()->authScheme.GetSigningName()->c_str();
}
}
return MakeRequest(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride);
(void)signerName;
return MakeRequest(uri, request, method, "S3ExpressSigner", signerRegionOverride, signerServiceNameOverride);
}

XmlOutcome AWSXMLClient::MakeRequest(const Aws::Endpoint::AWSEndpoint& endpoint,
Expand Down Expand Up @@ -98,6 +99,7 @@ XmlOutcome AWSXMLClient::MakeRequest(const Aws::Http::URI& uri,
const char* signerRegionOverride,
const char* signerServiceNameOverride) const
{
std::cout<<"MakeRequest signer "<<signerName<<std::endl;
HttpResponseOutcome httpOutcome(BASECLASS::AttemptExhaustively(uri, request, method, signerName, signerRegionOverride, signerServiceNameOverride));
if (!httpOutcome.IsSuccess())
{
Expand Down
Loading