Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Sep 25, 2023
1 parent f2bd107 commit 44a4c50
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class WithSigV4 extends HttpRequestInterceptor {
@override
Future<AWSBaseHttpRequest> intercept(AWSBaseHttpRequest request) async {
// Do not attempt to sign requests where auth is optional.
//
// This is only set in Cognito and SSO services where the trait indicates
// that signing is strictly unnecessary and that signing the request does
// not impact the behavior of the APIs.
if (isOptional) return request;

final signer = AWSSigV4Signer(
Expand Down

0 comments on commit 44a4c50

Please sign in to comment.