github and dropbox secret's moved out from config.json to env

This commit is contained in:
coderaiser 2012-12-05 10:41:38 -05:00
parent e82d82e8af
commit faed08a9a7
5 changed files with 10 additions and 6 deletions

View file

@ -164,6 +164,9 @@ Added dropbox_id option.
* Added getCurrentPath function to Util module.
* GitHub and DropBox secret's moved out from
config.json to env.
2012.10.01, Version 0.1.7

View file

@ -99,8 +99,10 @@ Authorization
---------------
Thru openID Cloud Commander could authorize clients on GitHub.
All things that should be done is must be added **id** and **secret** of application
from github settings page and added to **config.json** or env varibles with names:
*github_id* and *github_secret* that is more secure way.
from github settings page and added to **config.json** (id just) and env varible (secret)
with names: *github_id*, *github_secret*, *dropbox_key*, *dropbox_secret* etc.
For more information see *config.json* and *shell/seret.bat* (**on win32**)
or **shell/secret.sh** (**on *nix**).
Starting

View file

@ -59,7 +59,7 @@
Server : {},
/* КОНСТАНТЫ */
INDEX : main.DIR + '/' + 'index.html'
INDEX : main.DIR + 'index.html'
},
DirPath = '/',

View file

@ -48,11 +48,10 @@
function authenticate(pCode, pCallBack) {
var lId = Config.github_id,
lSecret = Config.github_secret,
lEnv = process.env,
lClientId = lEnv.github_id || lId,
lClientSecret = lEnv.github_secret || lSecret;
lClientId = lEnv.github_id || lId,
lClientSecret = lEnv.github_secret;
var data = qs.stringify({
client_id : lClientId,

0
shell/secret.sh Normal file → Executable file
View file