API - Application ID and a secret key
RespondidaHello,
When updating an app (from SDK 1.33. to 1.40.1), I see in logs
5/7/2018 12:18:42 PM [1525688322597] - [34mdebug[39m: CORE - (constructor) ------- SDK INFORMATION -------
5/7/2018 12:18:42 PM [1525688322598] - [32minfo[39m: CORE - (constructor) SDK version: 1.40.1
5/7/2018 12:18:42 PM [1525688322598] - [32minfo[39m: CORE - (constructor) Node version: v6.10.3
5/7/2018 12:18:42 PM [1525688322598] - [32minfo[39m: CORE - (constructor) http_parser version: 2.7.0
5/7/2018 12:18:42 PM [1525688322599] - [32minfo[39m: CORE - (constructor) node version: 6.10.3
5/7/2018 12:18:42 PM [1525688322599] - [32minfo[39m: CORE - (constructor) v8 version: 5.1.281.101
5/7/2018 12:18:42 PM [1525688322599] - [32minfo[39m: CORE - (constructor) uv version: 1.9.1
5/7/2018 12:18:42 PM [1525688322600] - [32minfo[39m: CORE - (constructor) zlib version: 1.2.11
5/7/2018 12:18:42 PM [1525688322600] - [32minfo[39m: CORE - (constructor) ares version: 1.10.1-DEV
5/7/2018 12:18:42 PM [1525688322600] - [32minfo[39m: CORE - (constructor) icu version: 56.1
5/7/2018 12:18:42 PM [1525688322600] - [32minfo[39m: CORE - (constructor) modules version: 48
5/7/2018 12:18:42 PM [1525688322601] - [32minfo[39m: CORE - (constructor) openssl version: 1.0.2k
5/7/2018 12:18:42 PM [1525688322601] - [34mdebug[39m: CORE - (constructor) ------- SDK INFORMATION -------
5/7/2018 12:18:42 PM [1525688322602] - [31merror[39m: OPTIONS - (constructor) 'appId' or 'appSecret' is not defined. Can't sign-in. Check the documentation to configure it
5/7/2018 12:18:42 PM [1525688322602] - [34mdebug[39m: OPTIONS - (constructor) Use REST services on Rainbow Official platform
5/7/2018 12:18:42 PM [1525688322603] - [34mdebug[39m: OPTIONS - (constructor) Use XMPP services on Rainbow Official platform
5/7/2018 12:18:42 PM [1525688322604] - [33mwarn[39m: OPTIONS - (constructor) 'appID' property is not defined. No application ID will be used
5/7/2018 12:18:42 PM [1525688322605] - [32minfo[39m: CORE - (constructor) used in XMPP mode
5/7/2018 12:18:42 PM [1525688322609] - [34mdebug[39m: CORE - (constructor) _exiting_
5/7/2018 12:18:42 PM [1525688322610] - [34mdebug[39m: CORE - (start) _entering_
5/7/2018 12:18:42 PM [1525688322611] - [34mdebug[39m: CORE - (start) start all modules
5/7/2018 12:18:42 PM [1525688322613] - [34mdebug[39m: STATEMGR - (start) _entering_
5/7/2018 12:18:42 PM [1525688322613] - [32minfo[39m: STATEMGR - (start) current state stopped
5/7/2018 12:18:42 PM [1525688322614] - [34mdebug[39m: STATEMGR - (start) _exiting_
5/7/2018 12:18:42 PM [1525688322619] - [34mdebug[39m: HTTP - (start) _entering_
5/7/2018 12:18:42 PM [1525688322620] - [34mdebug[39m: HTTP - (start) host used openrainbow.com
5/7/2018 12:18:42 PM [1525688322620] - [32minfo[39m: HTTP - (start) REST URL https://openrainbow.com:443
5/7/2018 12:18:42 PM [1525688322621] - [34mdebug[39m: HTTP - (start) _exiting_
5/7/2018 12:18:42 PM [1525688322621] - [34mdebug[39m: CPAAS - (start) _entering_
5/7/2018 12:18:42 PM [1525688322622] - [34mdebug[39m: CPAAS - (authenticate) _entering_
5/7/2018 12:18:42 PM [1525688322623] - [34mdebug[39m: CPAAS - (authenticate) Try to authenticate application
5/7/2018 12:18:42 PM [1525688322623] - [31merror[39m: CPAAS - (authenticate) Authentication fails: No app ID
5/7/2018 12:18:42 PM [1525688322623] - [34mdebug[39m: CPAAS - (authenticate) _exiting_
5/7/2018 12:18:42 PM [1525688322624] - [34mdebug[39m: CPAAS - (start) _exiting_
5/7/2018 12:18:42 PM [1525688322624] - [34mdebug[39m: CPAAS - (tokenSurvey) _enter_
5/7/2018 12:18:42 PM [1525688322626] - [34mdebug[39m: CPAAS - (start) Can't authenticate InvalidTokenError
at Object.<anonymous> (/var/www/rainbow/translator/node_modules/jwt-decode/lib/index.js:9:31)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/rainbow/translator/node_modules/rainbow-node-sdk/lib/connection/CPaaSService.js:4:13)
at Module._compile (module.js:570:32)
5/7/2018 12:18:42 PM [1525688322628] - [34mdebug[39m: CPAAS - (start) _exiting_
5/7/2018 12:18:42 PM [1525688322629] - [34mdebug[39m: REST - (start) _entering_
By the way it is still working.
Is there scheduled planned for App ID and App secret usage?
Thanks,
Eric
-
Comentário oficial
Hi eDemo,
We are putting in place a new mechanism to avoid non-indentified and non-authorized applications to access to Rainbow production platform.
At this time, this is only an alert in logs.
Starting July, you will be able to
- Register a developer account on the Rainbow HUB,
- Create your application ID/secret key.
- Deploy your application
Starting September, the Rainbow production platform will be restricted to applications that have been deployed.
More information on the Rainbow HUB will be published soon,
Regards,
Olivier
Ações de comentário
Por favor, entrar para comentar.
Comentários
1 comentário