diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-02 17:58:15 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-02 17:58:15 -0800 |
commit | 10ddca2c2fd6b14bbd94fe57aed66a6de03e1777 (patch) | |
tree | 5dc7e5794210e4a6b9769dc899d288005325b182 /python/fatcat_web/routes.py | |
parent | 25e6a55305b24218be76c9edfe3df0f88ce13234 (diff) | |
download | fatcat-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.py | 13 |
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) |