Skip to content

Commit c32e5f3

Browse files
authored
fix(client-cognito-identity): remove auth for UnlinkIdentity (#1621)
1 parent 71d7b04 commit c32e5f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clients/client-cognito-identity/commands/UnlinkIdentityCommand.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
serializeAws_json1_1UnlinkIdentityCommand,
66
} from "../protocols/Aws_json1_1";
77
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8-
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
98
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
109
import { Command as $Command } from "@aws-sdk/smithy-client";
1110
import {
@@ -41,7 +40,6 @@ export class UnlinkIdentityCommand extends $Command<
4140
options?: __HttpHandlerOptions
4241
): Handler<UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput> {
4342
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
44-
this.middlewareStack.use(getAwsAuthPlugin(configuration));
4543

4644
const stack = clientStack.concat(this.middlewareStack);
4745

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,11 @@ private static boolean testServiceId(Shape serviceShape, String expectedId) {
228228
}
229229

230230
private static boolean operationUsesAwsAuth(Model model, ServiceShape service, OperationShape operation) {
231-
// Cognito Identity service doesn't need auth for GetId, GetOpenIdToken, GetCredentialsForIdentity.
231+
// Cognito Identity doesn't need auth for GetId, GetOpenIdToken, GetCredentialsForIdentity, UnlinkIdentity.
232+
// Remove when optionalAuth model update is published in V261331976.
232233
if (testServiceId(service, "Cognito Identity")) {
233-
Boolean isUnsignedCommand = SetUtils.of("GetId", "GetOpenIdToken", "GetCredentialsForIdentity")
234+
Boolean isUnsignedCommand = SetUtils
235+
.of("GetId", "GetOpenIdToken", "GetCredentialsForIdentity", "UnlinkIdentity")
234236
.contains(operation.getId().getName());
235237
return !isUnsignedCommand;
236238
}

0 commit comments

Comments
 (0)