File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
smithy-swift-codegen/src/main/kotlin/software/amazon/smithy/swift/codegen/utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 11package software.amazon.smithy.swift.codegen.utils
22
33import software.amazon.smithy.model.knowledge.ServiceIndex
4+ import software.amazon.smithy.model.shapes.ShapeId
45import software.amazon.smithy.model.traits.HttpBearerAuthTrait
56import software.amazon.smithy.swift.codegen.SwiftWriter
67import software.amazon.smithy.swift.codegen.config.DefaultProvider
@@ -16,6 +17,10 @@ open class AuthUtils(
1617 isAsync = false
1718 )
1819
20+ fun isSupportedAuthScheme (authSchemeID : ShapeId ): Boolean {
21+ return ServiceIndex (ctx.model).getEffectiveAuthSchemes(ctx.service).contains(authSchemeID)
22+ }
23+
1924 fun getModeledAuthSchemesSupportedBySDK (
2025 ctx : ProtocolGenerator .GenerationContext ,
2126 writer : SwiftWriter ,
You can’t perform that action at this time.
0 commit comments