Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

throw new Error('apiKey.id is required.'); #18

@subatomicglue

Description

@subatomicglue

I am seeing this error:

> git clone git@github.com:stormpath/stormpath-passport-express-sample.git nodejs-stormpath-passport-express-sample
> cd nodejs-stormpath-passport-express-sample
> npm install
> export STORMPATH_CLIENT_APIKEY_ID=my key here
> export STORMPATH_CLIENT_APIKEY_SECRET=my secret key here
> export STORMPATH_APPLICATION_HREF=my http here
> # (i also have .env file with same vars)
> node app.js 




/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/authc/RequestAuthenticator.js:8
    throw new Error('apiKey.id is required.');
    ^

Error: apiKey.id is required.
    at BasicRequestAuthenticator.RequestAuthenticator (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/authc/RequestAuthenticator.js:8:11)
    at new BasicRequestAuthenticator (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/authc/BasicRequestAuthenticator.js:7:36)
    at Object.getAuthenticator (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/authc/index.js:27:15)
    at new RequestExecutor (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/ds/RequestExecutor.js:37:37)
    at new DataStore (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/ds/DataStore.js:46:52)
    at new Client (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/stormpath/lib/Client.js:8:21)
    at new Strategy (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/node_modules/passport-stormpath/lib/strategy.js:36:25)
    at Object.<anonymous> (/Users/happyuser/src/TechStack-Research/nodejs-stormpath-passport-express-sample/app.js:14:16)
    at Module._compile (module.js:573:32)
    at Object.Module._extensions..js (module.js:582:10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions