diff --git a/lib/strategy.js b/lib/strategy.js index df111c8..0d1d984 100644 --- a/lib/strategy.js +++ b/lib/strategy.js @@ -41,7 +41,13 @@ function Strategy(o) { self.spClient = opts.spClient; } else { self.spClient = new stormpath.Client({ - apiKey: new stormpath.ApiKey(apiKeyId, apiKeySecret), + apiKey: { + id: apiKeyId, + secret: apiKeySecret + }, + application: { + href: appHref + }, userAgent: 'passport-stormpath/' + version + ' ' + 'passport/' + passportVersion }); } diff --git a/package.json b/package.json index 5de0561..fbbf0f8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "proxyquire": "^0.6.0" }, "dependencies": { - "stormpath": "^0.6.0", - "passport": "^0.3.0" + "passport": "^0.3.0", + "stormpath": "^0.18.4" } }