aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-01-12 18:01:11 +0300
committerPjotr Prins2018-03-26 09:24:34 +0000
commitccdf9b81147fba35e4df704f39026af6a64e3a20 (patch)
tree56a638a11ab9717074af8f7e55f00f624f5b931b
parent06a34983c913f697f10f0440240cffb28f5ddb79 (diff)
downloadgenenetwork2-ccdf9b81147fba35e4df704f39026af6a64e3a20.tar.gz
Add client_id and client_secret configurations
* Provide the OAuth2 client_id and client_secret values in configuration variables.
-rw-r--r--wqflask/utility/tools.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index e7a673ad..330344d1 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -251,7 +251,11 @@ assert_dir(JS_GUIX_PATH)
JS_GN_PATH = get_setting('JS_GN_PATH')
# assert_dir(JS_GN_PATH)
+GITHUB_CLIENT_ID = get_setting('GITHUB_CLIENT_ID')
+GITHUB_CLIENT_SECRET = get_setting('GITHUB_CLIENT_SECRET')
GITHUB_AUTH_URL = get_setting('GITHUB_AUTH_URL')
+ORCID_CLIENT_ID = get_setting('ORCID_CLIENT_ID')
+ORCID_CLIENT_SECRET = get_setting('ORCID_CLIENT_SECRET')
ORCID_AUTH_URL = get_setting('ORCID_AUTH_URL')
ORCID_TOKEN_URL = get_setting('ORCID_TOKEN_URL')