stormpath

'apiKey.id is required' error thrown when using express-stormpath with node.js

左心房为你撑大大i 提交于 2019-12-04 04:11:35
问题 I am using express-stormpath with node.js to set up a backend server. This is a snippet of my server.js code where I get an error thrown - app.use(stormpath.init(app, { apiKeyFile: './config/.stormpath/apikey.properties', application: '<API_HREF>', secretKey: security.stormpath_secret_key })); This is the error - $ node server.js ../webservices/node_modules/express- stormpath/node_modules/stormpath/lib/authc/RequestAuthenticator.js:8 throw new Error('apiKey.id is required.'); How do I fix

'apiKey.id is required' error thrown when using express-stormpath with node.js

╄→гoц情女王★ 提交于 2019-12-01 20:53:29
I am using express-stormpath with node.js to set up a backend server. This is a snippet of my server.js code where I get an error thrown - app.use(stormpath.init(app, { apiKeyFile: './config/.stormpath/apikey.properties', application: '<API_HREF>', secretKey: security.stormpath_secret_key })); This is the error - $ node server.js ../webservices/node_modules/express- stormpath/node_modules/stormpath/lib/authc/RequestAuthenticator.js:8 throw new Error('apiKey.id is required.'); How do I fix this? I'm assuming you're using the latest version of the express-stormpath library, which is why you're

disable stormpath's Create account option in the login screen

╄→гoц情女王★ 提交于 2019-12-01 18:03:54
问题 I want to disable the create account in the stormpath login screen. The call to the api should already be made from a user authenticated to the app. I tried setting stormpathEnableRegistration to false but the registration functionality is still enabled. app.use(stormpath.init(app, { apiKeyFile: config.stormpathapi.apiKeyFile, application: config.stormpathapi.application, secretKey: config.stormpathapi.secretKey, sessionDuration: 1000 * 60 * 30, enableAutoLogin: true, enableUsername: true,

disable stormpath's Create account option in the login screen

谁说我不能喝 提交于 2019-12-01 18:01:48
I want to disable the create account in the stormpath login screen. The call to the api should already be made from a user authenticated to the app. I tried setting stormpathEnableRegistration to false but the registration functionality is still enabled. app.use(stormpath.init(app, { apiKeyFile: config.stormpathapi.apiKeyFile, application: config.stormpathapi.application, secretKey: config.stormpathapi.secretKey, sessionDuration: 1000 * 60 * 30, enableAutoLogin: true, enableUsername: true, stormpathEnableRegistration: false })); Thanks! I'm the author of the express-stormpath library, sorry