agilord / aws_client

High-level APIs for Amazon Web Services (AWS) in Dart
232 stars 105 forks source link

[bug] sts assumeRoleWithWebIdentity tries to sign request #400

Open mchandler-plato opened 1 year ago

mchandler-plato commented 1 year ago

This request should not be signed as there is no valid credentials before hand but i cant find a way to disabling signing and get the following exception:

Exception: credentials for signing request is null

package:shared_aws_api/src/protocol/query.dart 129:9             QueryProtocol._buildRequest
package:shared_aws_api/src/protocol/query.dart 75:16             QueryProtocol.send
package:aws_sts_api/sts-2011-06-15.dart 1160:21                  STS.assumeRoleWithWebIdentity
xvrh commented 1 year ago

What happen if you just pass an empty AwsClientCredentials like this?

var sts = STS(
      region: 'eu-west-1',
      credentials: AwsClientCredentials(accessKey: '', secretKey: ''));
mchandler-plato commented 1 year ago

im not sure, i ended up copying the package locally and adding in the signed: false to the function call: image