aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/tools.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-01-12 18:01:11 +0300
committerMuriithi Frederick Muriuki2018-01-12 18:01:11 +0300
commit76299c30c265919fd4025e11017b687c2b63fd82 (patch)
tree0921b16df3338736617433e2db287cc13ad47410 /wqflask/utility/tools.py
parentb4e4ca152256e1f1f06359d584034554db06402e (diff)
downloadgenenetwork2-76299c30c265919fd4025e11017b687c2b63fd82.tar.gz
Add client_id and client_secret configurations
* Provide the OAuth2 client_id and client_secret values in configuration variables.
Diffstat (limited to 'wqflask/utility/tools.py')
-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 d2e689a4..310b4cea 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')