Skip to content

Commit

Permalink
feat(experimentalIdentityAndAuth): add @httpBearerAuth back to gene…
Browse files Browse the repository at this point in the history
…ric tests
  • Loading branch information
Steven Yuan committed Sep 1, 2023
1 parent 4bf5daf commit f987062
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions smithy-typescript-codegen-test/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use smithy.waiters#waitable
// feat(experimentalIdentityAndAuth): uncomment operations as individual
// auth scheme support is implemented
@httpApiKeyAuth(name: "X-Api-Key", in: "header")
// @httpBearerAuth
@httpBearerAuth
// @sigv4(name: "weather")
// @auth([sigv4])
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
Expand All @@ -27,10 +27,11 @@ service Weather {
// auth scheme support is implemented
// experimentalIdentityAndAuth
OnlyHttpApiKeyAuth
// OnlyHttpBearerAuth
// OnlyHttpApiKeyAndBearerAuth
// OnlyHttpApiKeyAndBearerAuthReversed
OnlyHttpApiKeyAuthOptional
OnlyHttpBearerAuth
OnlyHttpBearerAuthOptional
OnlyHttpApiKeyAndBearerAuth
OnlyHttpApiKeyAndBearerAuthReversed
SameAsService
]
}
Expand All @@ -56,6 +57,11 @@ operation OnlyHttpApiKeyAndBearerAuthReversed {}
@optionalAuth
operation OnlyHttpApiKeyAuthOptional {}

@http(method: "GET", uri: "/OnlyHttpBearerAuthOptional")
@auth([httpBearerAuth])
@optionalAuth
operation OnlyHttpBearerAuthOptional {}

@http(method: "GET", uri: "/SameAsService")
operation SameAsService {}

Expand Down

0 comments on commit f987062

Please sign in to comment.