@vizamodo/aws-sts-core 0.1.34 → 0.1.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/sts/issue.js CHANGED
@@ -87,7 +87,7 @@ export async function issueAwsCredentials(input) {
87
87
  "Content-Type": "application/json",
88
88
  "X-Amz-Date": amzDate,
89
89
  "X-Amz-X509-Chain": normalizedCert,
90
- "Authorization": `AWS4-X509-ECDSA-SHA256 Credential=${roleArn}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signatureHex}`
90
+ "Authorization": `AWS4-X509-ECDSA-SHA256 Credential=${profileArn}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signatureHex}`
91
91
  });
92
92
  // 6. Execution (fetch)
93
93
  try {
@@ -127,7 +127,7 @@ export async function issueAwsCredentials(input) {
127
127
  "Content-Type": "application/json",
128
128
  "X-Amz-Date": amzDate,
129
129
  "X-Amz-X509-Chain": normalizedCert,
130
- "Authorization": `AWS4-X509-ECDSA-SHA256 Credential=${roleArn}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signatureHex}`
130
+ "Authorization": `AWS4-X509-ECDSA-SHA256 Credential=${profileArn}/${credentialScope}, SignedHeaders=${signedHeaders}, Signature=${signatureHex}`
131
131
  }
132
132
  });
133
133
  throw new InternalError("aws_rejected");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizamodo/aws-sts-core",
3
- "version": "0.1.34",
3
+ "version": "0.1.36",
4
4
  "description": "Pure AWS STS + SigV4 (X509 Roles Anywhere) core logic",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",