[英]express-stormpath login not working for email-authenticated users
[英]express-stormpath not recognizing environment variables to initialize on Heroku
我有一個簡單的Web服務器,嘗試使用npm軟件包“ express-stormpath”進行基本用戶注冊。
本地一切正常-但是當我部署到Heroku時始終出現此錯誤:
Error: apiKey.id is required.
2015-10-23T00:23:52.603692+00:00 app[web.1]: at new RequestExecutor (/app/node_modules/express-stormpath/node_modules/stormpath/lib/ds/RequestExecutor.js:26:37)
我嘗試了各種可能的方法來配置此功能:1)完全環境變量,如https://docs.stormpath.com/nodejs/express/latest/configuration.html#environment-variables中所述
2)在./stormfront中的小型私有配置文件,如此處所示: 當將express-stormpath與node.js一起使用時,拋出“ apiKey.id是必需的”錯誤
3)我嘗試了以下方法,手動創建apiKey對象:
https://github.com/stormpath/express-stormpath/issues/135
在Heroku上沒有任何作用。 有小費嗎?
我們的Node SDK中存在一個暫時的錯誤,請修改您的配置變量以使用以下新名稱:
STORMPATH_CLIENT_APIKEY_ID
STORMPATH_CLIENT_APIKEY_SECRET
STORMPATH_APPLICATION_HREF
我們發布了接受這些新參數的新版本,但不幸的是,它破壞了與舊參數的向后兼容性。 我們明天將發布修復程序,但是您現在可以使用變量名稱來解決問題。 對於這個問題,我們深表歉意!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.