summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/__init__.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-10 17:47:43 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-10 17:47:43 -0700
commit7022773e8f3decbe80c37fe77962a70932072d1b (patch)
tree8f6b751d0523993e35ae9dcbc4a4c9ee6188357d /python/fatcat_web/__init__.py
parent978edc5dc5fe90f705252c44c1291cc6140eeb3a (diff)
parenteffef07fbb8eea5b608d48e6b6bd420ea2c76506 (diff)
downloadfatcat-7022773e8f3decbe80c37fe77962a70932072d1b.tar.gz
fatcat-7022773e8f3decbe80c37fe77962a70932072d1b.zip
Merge branch 'bnewbold-loginpass-orcid'
Diffstat (limited to 'python/fatcat_web/__init__.py')
-rw-r--r--python/fatcat_web/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat_web/__init__.py b/python/fatcat_web/__init__.py
index 6e285ddb..ba789609 100644
--- a/python/fatcat_web/__init__.py
+++ b/python/fatcat_web/__init__.py
@@ -8,7 +8,7 @@ from flask_wtf.csrf import CSRFProtect
from flask_misaka import Misaka
from flask_mwoauth import MWOAuth
from authlib.flask.client import OAuth
-from loginpass import create_flask_blueprint, Gitlab, GitHub
+from loginpass import create_flask_blueprint, Gitlab, GitHub, ORCiD
from raven.contrib.flask import Sentry
import fatcat_client
@@ -74,9 +74,9 @@ app.register_blueprint(mwoauth.bp, url_prefix='/auth/wikipedia')
from fatcat_web import routes, editing_routes, auth, cors, forms
# TODO: blocking on ORCID support in loginpass
-#if Config.ORCID_CLIENT_ID:
-# orcid_bp = create_flask_blueprint(ORCID, oauth, auth.handle_oauth)
-# app.register_blueprint(orcid_bp, url_prefix='/auth/orcid')
+if Config.ORCID_CLIENT_ID:
+ orcid_bp = create_flask_blueprint(ORCiD, oauth, auth.handle_oauth)
+ app.register_blueprint(orcid_bp, url_prefix='/auth/orcid')
if Config.GITLAB_CLIENT_ID:
gitlab_bp = create_flask_blueprint(Gitlab, oauth, auth.handle_oauth)