diff --git a/src/routes.py b/src/routes.py index ae2833d..6e2079b 100644 --- a/src/routes.py +++ b/src/routes.py @@ -1,5 +1,6 @@ from flask import url_for, session, request, render_template, redirect from .app import app, dbms, oauth, socketio +import requests @app.route('/', methods=['GET', 'POST', 'DELETE']) @@ -96,6 +97,9 @@ def logout(): def on_session_close(): logout() + app.logger.debug('Calling Vault to Logout') + _ = requests.get(url="https://vault.unipg.it/ui/vault/logout") + @app.route('/info') def info(): return render_template('info.html')