From 10ddca2c2fd6b14bbd94fe57aed66a6de03e1777 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 2 Jan 2019 17:58:15 -0800 Subject: start on webface oauth2/oidc web auth --- python/fatcat_web/routes.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'python/fatcat_web/routes.py') 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) -- cgit v1.2.3