Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sbera87 committed Sep 9, 2024
1 parent a077743 commit d3fbad8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class BearerTokenAuthScheme : public AuthScheme<AwsBearerTokenIdentityBase>
explicit BearerTokenAuthScheme(
std::shared_ptr<AwsCredentialIdentityResolverT> identityResolver,
const Aws::String &serviceName, const Aws::String &region)
: AuthScheme(smithy::BearerTokenAuthSchemeOption::BEARER_SCHEME),
: AuthScheme("smithy.api#HTTPBearerAuth"),
m_identityResolver{identityResolver},
m_signer{Aws::MakeShared<smithy::BearerTokenSigner>(
"BearerTokenAuthScheme", serviceName, region)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ namespace smithy
struct BearerTokenAuthSchemeOption
{
static AuthSchemeOption bearerTokenAuthSchemeOption;
static char BEARER_SCHEME[];
};

char BearerTokenAuthSchemeOption::BEARER_SCHEME[] = "smithy.api#HTTPBearerAuth";

AuthSchemeOption BearerTokenAuthSchemeOption::bearerTokenAuthSchemeOption =
AuthSchemeOption(BEARER_SCHEME);
AuthSchemeOption("smithy.api#HTTPBearerAuth");
} // namespace smithy
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ TEST_F(SmithyClientTest, bearer)

Aws::UnorderedMap<Aws::String, SigVariant> authSchemesMap;

Aws::String key{smithy::BearerTokenAuthSchemeOption::BEARER_SCHEME};
Aws::String key{
smithy::BearerTokenAuthSchemeOption::bearerTokenAuthSchemeOption
.schemeId};

std::shared_ptr<smithy::AwsBearerTokenIdentityResolver> resolver =
Aws::MakeShared<TestAwsBearerTokenIdentityResolver>(ALLOCATION_TAG);
Expand Down

0 comments on commit d3fbad8

Please sign in to comment.