mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
github and dropbox secret's moved out from config.json to env
This commit is contained in:
parent
e82d82e8af
commit
faed08a9a7
5 changed files with 10 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
Server : {},
|
||||
|
||||
/* КОНСТАНТЫ */
|
||||
INDEX : main.DIR + '/' + 'index.html'
|
||||
INDEX : main.DIR + 'index.html'
|
||||
},
|
||||
DirPath = '/',
|
||||
|
||||
|
|
|
|||
|
|
@ -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
0
shell/secret.sh
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue