Skip to content

Commit

Permalink
feat(experimentalIdentityAndAuth): add @customAuth auth scheme to g…
Browse files Browse the repository at this point in the history
…eneric tests
  • Loading branch information
syall committed Sep 5, 2023
1 parent d3071d0 commit 831a378
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions smithy-typescript-codegen-test/model/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,16 @@ use smithy.test#httpRequestTests
use smithy.test#httpResponseTests
use smithy.waiters#waitable

@authDefinition
@trait
structure customAuth {}

/// Provides weather forecasts.
@fakeProtocol
@httpApiKeyAuth(name: "X-Api-Key", in: "header")
@httpBearerAuth
@sigv4(name: "weather")
@customAuth
@auth([sigv4])
@paginated(inputToken: "nextToken", outputToken: "nextToken", pageSize: "pageSize")
service Weather {
Expand All @@ -30,6 +35,8 @@ service Weather {
OnlyHttpApiKeyAndBearerAuthReversed
OnlySigv4Auth
OnlySigv4AuthOptional
OnlyCustomAuth
OnlyCustomAuthOptional
SameAsService
]
}
Expand Down Expand Up @@ -69,6 +76,15 @@ operation OnlyHttpBearerAuthOptional {}
@optionalAuth
operation OnlySigv4AuthOptional {}

@http(method: "GET", uri: "/OnlyCustomAuth")
@auth([customAuth])
operation OnlyCustomAuth {}

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

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

Expand Down

0 comments on commit 831a378

Please sign in to comment.