deep-core
Advanced tools
Comparing version 1.9.15 to 1.9.16
@@ -31,2 +31,8 @@ /** | ||
var _awsSdk = require('aws-sdk'); | ||
var _awsSdk2 = _interopRequireDefault(_awsSdk); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -259,3 +265,3 @@ | ||
value: function _initDBPartitionKey() { | ||
if (!this.kernel.accountMicroservice) { | ||
if (!this.kernel.accountMicroservice || !this.forceUserIdentity) { | ||
return this; | ||
@@ -296,3 +302,8 @@ } | ||
// and instantiate security token without loading user credentials | ||
return this.securityService.warmupBackendLogin(this._context).then(() => { | ||
return this.securityService.warmupBackendLogin(this._context).then(credentials => { | ||
let dbService = this.dbService; | ||
_awsSdk2.default.config.credentials = credentials; | ||
dbService.overwriteCredentials(credentials); | ||
this._loggedUserId = this._context.identity.cognitoIdentityId; | ||
@@ -299,0 +310,0 @@ }); |
{ | ||
"name": "deep-core", | ||
"version": "1.9.15", | ||
"version": "1.9.16", | ||
"description": "DEEP Core Library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
117216
2879