Comparing version 2.2.10 to 2.2.11
@@ -135,3 +135,3 @@ { | ||
"InstanceMonitoring": { | ||
"shape": "S16" | ||
"shape": "S17" | ||
}, | ||
@@ -292,3 +292,3 @@ "SpotPrice": {}, | ||
"AutoScalingGroupNames": { | ||
"shape": "S1t" | ||
"shape": "S1u" | ||
}, | ||
@@ -396,3 +396,3 @@ "NextToken": {}, | ||
"Tags": { | ||
"shape": "S26" | ||
"shape": "S27" | ||
}, | ||
@@ -458,3 +458,3 @@ "TerminationPolicies": { | ||
"AutoScalingNotificationTypes": { | ||
"shape": "S2d" | ||
"shape": "S2e" | ||
} | ||
@@ -515,3 +515,3 @@ } | ||
"InstanceMonitoring": { | ||
"shape": "S16" | ||
"shape": "S17" | ||
}, | ||
@@ -543,3 +543,3 @@ "SpotPrice": {}, | ||
"LifecycleHookTypes": { | ||
"shape": "S2d" | ||
"shape": "S2e" | ||
} | ||
@@ -654,3 +654,3 @@ } | ||
"AutoScalingGroupNames": { | ||
"shape": "S1t" | ||
"shape": "S1u" | ||
}, | ||
@@ -719,3 +719,3 @@ "NextToken": {}, | ||
"MinAdjustmentStep": { | ||
"shape": "S3c" | ||
"shape": "S3d" | ||
}, | ||
@@ -732,3 +732,3 @@ "MinAdjustmentMagnitude": { | ||
"StepAdjustments": { | ||
"shape": "S3f" | ||
"shape": "S3g" | ||
}, | ||
@@ -779,3 +779,3 @@ "MetricAggregationType": {}, | ||
"Activities": { | ||
"shape": "S3o" | ||
"shape": "S3p" | ||
}, | ||
@@ -893,3 +893,3 @@ "NextToken": {} | ||
"Tags": { | ||
"shape": "S26" | ||
"shape": "S27" | ||
}, | ||
@@ -933,3 +933,3 @@ "NextToken": {} | ||
"Activities": { | ||
"shape": "S3o" | ||
"shape": "S3p" | ||
} | ||
@@ -964,3 +964,3 @@ } | ||
"Metrics": { | ||
"shape": "S4c" | ||
"shape": "S4d" | ||
} | ||
@@ -980,3 +980,3 @@ } | ||
"Metrics": { | ||
"shape": "S4c" | ||
"shape": "S4d" | ||
}, | ||
@@ -1009,3 +1009,3 @@ "Granularity": {} | ||
"Activities": { | ||
"shape": "S3o" | ||
"shape": "S3p" | ||
} | ||
@@ -1054,3 +1054,3 @@ } | ||
"Activities": { | ||
"shape": "S3o" | ||
"shape": "S3p" | ||
} | ||
@@ -1098,3 +1098,3 @@ } | ||
"NotificationTypes": { | ||
"shape": "S2d" | ||
"shape": "S2e" | ||
} | ||
@@ -1118,3 +1118,3 @@ } | ||
"MinAdjustmentStep": { | ||
"shape": "S3c" | ||
"shape": "S3d" | ||
}, | ||
@@ -1132,3 +1132,3 @@ "MinAdjustmentMagnitude": { | ||
"StepAdjustments": { | ||
"shape": "S3f" | ||
"shape": "S3g" | ||
}, | ||
@@ -1202,3 +1202,3 @@ "EstimatedInstanceWarmup": { | ||
"input": { | ||
"shape": "S4s" | ||
"shape": "S4t" | ||
} | ||
@@ -1242,3 +1242,3 @@ }, | ||
"input": { | ||
"shape": "S4s" | ||
"shape": "S4t" | ||
} | ||
@@ -1265,3 +1265,3 @@ }, | ||
"Activity": { | ||
"shape": "S3p" | ||
"shape": "S3q" | ||
} | ||
@@ -1374,2 +1374,5 @@ } | ||
"type": "integer" | ||
}, | ||
"Encrypted": { | ||
"type": "boolean" | ||
} | ||
@@ -1384,3 +1387,3 @@ } | ||
}, | ||
"S16": { | ||
"S17": { | ||
"type": "structure", | ||
@@ -1393,7 +1396,7 @@ "members": { | ||
}, | ||
"S1t": { | ||
"S1u": { | ||
"type": "list", | ||
"member": {} | ||
}, | ||
"S26": { | ||
"S27": { | ||
"type": "list", | ||
@@ -1413,11 +1416,11 @@ "member": { | ||
}, | ||
"S2d": { | ||
"S2e": { | ||
"type": "list", | ||
"member": {} | ||
}, | ||
"S3c": { | ||
"S3d": { | ||
"type": "integer", | ||
"deprecated": true | ||
}, | ||
"S3f": { | ||
"S3g": { | ||
"type": "list", | ||
@@ -1442,9 +1445,9 @@ "member": { | ||
}, | ||
"S3o": { | ||
"S3p": { | ||
"type": "list", | ||
"member": { | ||
"shape": "S3p" | ||
"shape": "S3q" | ||
} | ||
}, | ||
"S3p": { | ||
"S3q": { | ||
"type": "structure", | ||
@@ -1477,7 +1480,7 @@ "required": [ | ||
}, | ||
"S4c": { | ||
"S4d": { | ||
"type": "list", | ||
"member": {} | ||
}, | ||
"S4s": { | ||
"S4t": { | ||
"type": "structure", | ||
@@ -1495,3 +1498,4 @@ "required": [ | ||
} | ||
} | ||
}, | ||
"examples": {} | ||
} |
@@ -2208,2 +2208,5 @@ { | ||
}, | ||
"ResourcePolicy": {}, | ||
"ResourceOwner": {}, | ||
"CallerArn": {}, | ||
"ContextEntries": { | ||
@@ -2241,2 +2244,5 @@ "shape": "S7j" | ||
}, | ||
"ResourcePolicy": {}, | ||
"ResourceOwner": {}, | ||
"CallerArn": {}, | ||
"ContextEntries": { | ||
@@ -2872,2 +2878,7 @@ "shape": "S7j" | ||
"shape": "S3w" | ||
}, | ||
"EvalDecisionDetails": { | ||
"type": "map", | ||
"key": {}, | ||
"value": {} | ||
} | ||
@@ -2874,0 +2885,0 @@ } |
@@ -103,2 +103,7 @@ var AWS = require('./core'); | ||
* the API configuration). Possible values are: 'v2', 'v3', 'v4'. | ||
* | ||
* @!attribute signatureCache | ||
* @return [Boolean] whether the signature to sign requests with (overriding | ||
* the API configuration) is cached. Only applies to the signature version 'v4'. | ||
* Defaults to `true`. | ||
*/ | ||
@@ -194,2 +199,5 @@ AWS.Config = AWS.util.inherit({ | ||
* 'v2', 'v3', 'v4'. | ||
* @option options signatureCache [Boolean] whether the signature to sign | ||
* requests with (overriding the API configuration) is cached. Only applies | ||
* to the signature version 'v4'. Defaults to `true`. | ||
*/ | ||
@@ -404,3 +412,4 @@ constructor: function Config(options) { | ||
systemClockOffset: 0, | ||
signatureVersion: null | ||
signatureVersion: null, | ||
signatureCache: true | ||
}, | ||
@@ -407,0 +416,0 @@ |
@@ -20,3 +20,3 @@ /** | ||
*/ | ||
VERSION: '2.2.10', | ||
VERSION: '2.2.11', | ||
@@ -23,0 +23,0 @@ /** |
@@ -83,3 +83,6 @@ var AWS = require('../core'); | ||
* }, | ||
* RoleSessionName: 'web' // optional name, defaults to web-identity | ||
* RoleSessionName: 'web' // optional name, defaults to web-identity, | ||
* // optional, only necessary when application runs in a browser | ||
* // and multiple users are signed in at once | ||
* LoginId: 'example@gmail.com' | ||
* }); | ||
@@ -139,4 +142,5 @@ * @see AWS.STS.assumeRoleWithWebIdentity | ||
var poolId = this.params.IdentityPoolId; | ||
delete this.storage[this.localStorageKey.id + poolId]; | ||
delete this.storage[this.localStorageKey.providers + poolId]; | ||
var loginId = this.params.LoginId || ''; | ||
delete this.storage[this.localStorageKey.id + poolId + loginId]; | ||
delete this.storage[this.localStorageKey.providers + poolId + loginId]; | ||
}, | ||
@@ -287,3 +291,3 @@ | ||
getStorage: function getStorage(key) { | ||
return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId]; | ||
return this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')]; | ||
}, | ||
@@ -296,3 +300,3 @@ | ||
try { | ||
this.storage[this.localStorageKey[key] + this.params.IdentityPoolId] = val; | ||
this.storage[this.localStorageKey[key] + this.params.IdentityPoolId + (this.params.LoginId || '')] = val; | ||
} catch (_) {} | ||
@@ -299,0 +303,0 @@ }, |
@@ -150,3 +150,4 @@ var AWS = require('./core'); | ||
var signer = new SignerClass(req.httpRequest, | ||
req.service.api.signingName || req.service.api.endpointPrefix); | ||
req.service.api.signingName || req.service.api.endpointPrefix, | ||
req.service.config.signatureCache); | ||
@@ -153,0 +154,0 @@ // clear old authorization headers |
@@ -52,2 +52,5 @@ var AWS = require('../core'); | ||
if (key === expiresHeader) key = 'Expires'; | ||
if (key.indexOf('x-amz-') === 0) { | ||
key = key.toLowerCase(); | ||
} | ||
queryParams[key] = value; | ||
@@ -54,0 +57,0 @@ }); |
@@ -18,5 +18,6 @@ var AWS = require('../core'); | ||
AWS.Signers.V4 = inherit(AWS.Signers.RequestSigner, { | ||
constructor: function V4(request, serviceName) { | ||
constructor: function V4(request, serviceName, signatureCache) { | ||
AWS.Signers.RequestSigner.call(this, request); | ||
this.serviceName = serviceName; | ||
this.signatureCache = signatureCache; | ||
}, | ||
@@ -91,4 +92,8 @@ | ||
signature: function signature(credentials, datetime) { | ||
var cache = cachedSecret[this.serviceName]; | ||
var cache = null; | ||
if (this.signatureCache) { | ||
var cache = cachedSecret[this.serviceName]; | ||
} | ||
var date = datetime.substr(0, 8); | ||
if (!cache || | ||
@@ -98,2 +103,3 @@ cache.akid !== credentials.accessKeyId || | ||
cache.date !== date) { | ||
var kSecret = credentials.secretAccessKey; | ||
@@ -104,2 +110,7 @@ var kDate = AWS.util.crypto.hmac('AWS4' + kSecret, date, 'buffer'); | ||
var kCredentials = AWS.util.crypto.hmac(kService, 'aws4_request', 'buffer'); | ||
if (!this.signatureCache) { | ||
return AWS.util.crypto.hmac(kCredentials, this.stringToSign(datetime), 'hex'); | ||
} | ||
cachedSecret[this.serviceName] = { | ||
@@ -106,0 +117,0 @@ region: this.request.region, date: date, |
{ | ||
"name": "aws-sdk", | ||
"description": "AWS SDK for JavaScript", | ||
"version": "2.2.10", | ||
"version": "2.2.11", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name":"Amazon Web Services", |
@@ -27,3 +27,3 @@ # AWS SDK for JavaScript | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.2.10.min.js"></script> | ||
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.2.11.min.js"></script> | ||
@@ -30,0 +30,0 @@ The AWS SDK is also compatible with [browserify](http://browserify.org). |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3216158
96580