diff --git a/src/forest/auth/routes.py b/src/forest/auth/routes.py index 6dfe949..7a6f363 100644 --- a/src/forest/auth/routes.py +++ b/src/forest/auth/routes.py @@ -13,7 +13,7 @@ from models import db, User from io import BytesIO import pyqrcode -@app.route('/authorize/') +@auth.route('/authorize/') def oauth2_authorize(provider): if not current_user.is_anonymous: return redirect(url_for('index')) @@ -38,7 +38,7 @@ def oauth2_authorize(provider): # redirect the user to the OAuth2 provider authorization URL return redirect(provider_data['authorize_url'] + '?' + qs) -@app.route('/callback/') +@auth.route('/callback/') def oauth2_callback(provider): if not current_user.is_anonymous: return redirect(url_for('index'))