From 0dc2563b311a0e2dcc3acebdda188a97f1e29ccd Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 11 Sep 2023 15:14:36 +0200 Subject: [PATCH] Rename route for SSO authorization --- web/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/auth.py b/web/auth.py index 04f472c..bd81af5 100644 --- a/web/auth.py +++ b/web/auth.py @@ -46,10 +46,10 @@ def init_app(app): @app.route('/login') def login(): - return oauth.azure.authorize_redirect(flask.url_for('auth', _external=True)) + return oauth.azure.authorize_redirect(flask.url_for('authorize', _external=True)) - @app.route('/auth') - def auth(): + @app.route('/authorize') + def authorize(): token = oauth.azure.authorize_access_token() user = users[user.username] = User(token.get('userinfo', {})) flask_login.login_user(user)