From 00804927e2b56815f0fcea20f130f8adbcf4c686 Mon Sep 17 00:00:00 2001 From: Steven Yuan Date: Tue, 10 Oct 2023 09:42:36 -0700 Subject: [PATCH] Fix `HttpAuthSchemeParameter`s codegen (#998) --- .../codegen/auth/http/HttpAuthSchemeProviderGenerator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/auth/http/HttpAuthSchemeProviderGenerator.java b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/auth/http/HttpAuthSchemeProviderGenerator.java index 6dd1b6041c5..00fa6539113 100644 --- a/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/auth/http/HttpAuthSchemeProviderGenerator.java +++ b/smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/auth/http/HttpAuthSchemeProviderGenerator.java @@ -74,8 +74,8 @@ public HttpAuthSchemeProviderGenerator( this.serviceShape = settings.getService(model); this.serviceSymbol = symbolProvider.toSymbol(serviceShape); this.serviceName = CodegenUtils.getServiceName(settings, model, symbolProvider); - this.httpAuthSchemeParameters = - AuthUtils.collectHttpAuthSchemeParameters(authIndex.getSupportedHttpAuthSchemes().values()); + this.httpAuthSchemeParameters = AuthUtils.collectHttpAuthSchemeParameters( + AuthUtils.getAllEffectiveNoAuthAwareAuthSchemes(serviceShape, serviceIndex, authIndex).values()); } @Override