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 Aug 22, 2023
1 parent 3aea4dc commit dbf1138
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 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,11 +27,12 @@ service Weather {
// auth scheme support is implemented
// experimentalIdentityAndAuth
// OnlyHttpApiKeyAuth
// OnlyHttpBearerAuth
OnlyHttpBearerAuth
// OnlyHttpApiKeyAndBearerAuth
// OnlyHttpApiKeyAndBearerAuthReversed
// OnlyHttpApiKeyAuthOptional
// SameAsService
OnlyHttpBearerAuthOptional
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 dbf1138

Please sign in to comment.