aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-01-19 13:00:51 +0300
committerMuriithi Frederick Muriuki2018-01-19 13:00:51 +0300
commitd30cbe103946d70b9c61bc48575f23ead1d4048c (patch)
tree5306d98d48006b6a40297448ffbcfa0f7581b6f3 /wqflask
parent2e7335182e55b22e9c61eef111e00f119760d365 (diff)
downloadgenenetwork2-d30cbe103946d70b9c61bc48575f23ead1d4048c.tar.gz
Update configurations
* Have the authorisation URLs build up from the client id and client secret values.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/utility/tools.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py
index df066e67..8a32c9b4 100644
--- a/wqflask/utility/tools.py
+++ b/wqflask/utility/tools.py
@@ -253,11 +253,11 @@ JS_GN_PATH = get_setting('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')
+GITHUB_AUTH_URL = "https://github.com/login/oauth/authorize?client_id="+GITHUB_CLIENT_ID+"&client_secret="+GITHUB_CLIENT_SECRET
GITHUB_API_URL = get_setting('GITHUB_API_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_AUTH_URL = "https://sandbox.orcid.org/oauth/authorize?response_type=code&scope=/authenticate&show_login=true&client_id="+ORCID_CLIENT_ID+"&client_secret="+ORCID_CLIENT_SECRET
ORCID_TOKEN_URL = get_setting('ORCID_TOKEN_URL')
ELASTICSEARCH_HOST = get_setting('ELASTICSEARCH_HOST')