8#include <smithy/identity/identity/AwsBearerTokenIdentityBase.h>
9#include <smithy/identity/signer/AwsSignerBase.h>
11#include <aws/core/auth/signer/AWSAuthSignerHelper.h>
12#include <aws/core/http/HttpRequest.h>
13#include <aws/crt/http/HttpConnection.h>
14#include <aws/crt/http/HttpRequestResponse.h>
35 sign(std::shared_ptr<HttpRequest> httpRequest,
39 AWS_UNREFERENCED_PARAM(properties);
48 "HTTPS scheme must be used with a bearer token authorization");
51 "Failed to sign the request with bearer",
false);
55 "Bearer " + identity.
token());
virtual const Aws::String & token() const =0
Aws::Client::AWSError< Aws::Client::CoreErrors > SigningError
Aws::Utils::FutureOutcome< std::shared_ptr< HttpRequest >, SigningError > SigningFutureOutcome
Aws::UnorderedMap< Aws::String, Aws::Crt::Variant< Aws::String, bool > > SigningProperties
static const char LOGGING_TAG[]
virtual ~BearerTokenSigner()
Aws::String m_serviceName
SigningFutureOutcome sign(std::shared_ptr< HttpRequest > httpRequest, const smithy::AwsBearerTokenIdentityBase &identity, SigningProperties properties) override
BearerTokenSigner(const Aws::String &serviceName, const Aws::String ®ion)
@ INVALID_PARAMETER_VALUE
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
static const char AUTHORIZATION_HEADER[]