summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/routes.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-02 17:58:15 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-02 17:58:15 -0800
commit10ddca2c2fd6b14bbd94fe57aed66a6de03e1777 (patch)
tree5dc7e5794210e4a6b9769dc899d288005325b182 /python/fatcat_web/routes.py
parent25e6a55305b24218be76c9edfe3df0f88ce13234 (diff)
downloadfatcat-10ddca2c2fd6b14bbd94fe57aed66a6de03e1777.tar.gz
fatcat-10ddca2c2fd6b14bbd94fe57aed66a6de03e1777.zip
start on webface oauth2/oidc web auth
Diffstat (limited to 'python/fatcat_web/routes.py')
-rw-r--r--python/fatcat_web/routes.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/python/fatcat_web/routes.py b/python/fatcat_web/routes.py
index 998697bc..51533a2f 100644
--- a/python/fatcat_web/routes.py
+++ b/python/fatcat_web/routes.py
@@ -367,6 +367,19 @@ def search():
return render_template('release_search.html', query=query, fulltext_only=fulltext_only)
+### Auth ####################################################################
+
+@app.route('/login')
+def login():
+ # show the user a list of login options
+ return render_template('release_search.html', query=query, fulltext_only=fulltext_only)
+
+@app.route('/login')
+def logout():
+ # TODO: clear extra session info
+ logout_user()
+ return render_template('logout.html')
+
### Static Routes ###########################################################
@app.errorhandler(404)