Skip to content

Commit 11bc793

Browse files
authored
chore(client-cognito-identity): remove auth customizations (#1733)
1 parent a1e8036 commit 11bc793

File tree

1 file changed

+1
-13
lines changed
  • codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen

1 file changed

+1
-13
lines changed

codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/AddBuiltinPlugins.java

+1-13
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ public List<RuntimeClientPlugin> getClientPlugins() {
6767
.withConventions(AwsDependency.MIDDLEWARE_SIGNING.dependency, "AwsAuth", HAS_MIDDLEWARE)
6868
// See operationUsesAwsAuth() below for AwsAuth Middleware customizations.
6969
.servicePredicate(
70-
(m, s) ->
71-
!testServiceId(s, "Cognito Identity")
72-
&& !testServiceId(s, "STS")
73-
&& !hasOptionalAuthOperation(m, s)
70+
(m, s) -> !testServiceId(s, "STS") && !hasOptionalAuthOperation(m, s)
7471
).build(),
7572
RuntimeClientPlugin.builder()
7673
.withConventions(TypeScriptDependency.MIDDLEWARE_RETRY.dependency, "Retry")
@@ -169,15 +166,6 @@ private static boolean testServiceId(Shape serviceShape, String expectedId) {
169166
}
170167

171168
private static boolean operationUsesAwsAuth(Model model, ServiceShape service, OperationShape operation) {
172-
// Cognito Identity doesn't need auth for GetId, GetOpenIdToken, GetCredentialsForIdentity, UnlinkIdentity.
173-
// Remove when optionalAuth model update is published in V261331976.
174-
if (testServiceId(service, "Cognito Identity")) {
175-
Boolean isUnsignedCommand = SetUtils
176-
.of("GetId", "GetOpenIdToken", "GetCredentialsForIdentity", "UnlinkIdentity")
177-
.contains(operation.getId().getName());
178-
return !isUnsignedCommand;
179-
}
180-
181169
// STS doesn't need auth for AssumeRoleWithWebIdentity, AssumeRoleWithSAML.
182170
// Remove when optionalAuth model update is published in 0533102932.
183171
if (testServiceId(service, "STS")) {

0 commit comments

Comments
 (0)