-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass config variables rather than reading file from disc.
This allows the calling application to choose how it handles configuration. Particularly useful for applications following the 12 factor methodology.
- Loading branch information
1 parent
0f44ca7
commit 01fa26d
Showing
6 changed files
with
61 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
.nyc_output/ | ||
.DS_Store | ||
.vscode | ||
*config.json | ||
testing_config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"APPTYPE": "PARTNER", | ||
"partner": { | ||
"AuthorizeCallbackUrl": null, | ||
"ConsumerKey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | ||
"PrivateKeyPath": "/some/path/to/privatekey.pem", | ||
"UserAgent": "Tester (PARTNER) - Application for testing Xero", | ||
"XeroPassword": "XXXXXXXXXX", | ||
"XeroUsername": "[email protected]" | ||
}, | ||
"private": { | ||
"ConsumerKey": "AAAAAAAAAAAAAAAAAA", | ||
"ConsumerSecret": "BBBBBBBBBBBBBBBBBBBB", | ||
"PrivateKeyPath": "/some/path/to/privatekey.pem", | ||
"UserAgent": "Tester (PRIVATE) - Application for testing Xero" | ||
}, | ||
"public": { | ||
"AuthorizeCallbackUrl": "https://example.com/xerocallback", | ||
"ConsumerKey": "AAAAAAAAAAAAAAAAAA", | ||
"ConsumerSecret": "BBBBBBBBBBBBBBBBBBBB", | ||
"UserAgent": "Tester (PUBLIC) - Application for testing Xero" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters