From f415a74a078713e6a2b2b25f07f86f00edc713f1 Mon Sep 17 00:00:00 2001 From: deflax Date: Sun, 7 Apr 2024 20:23:09 +0300 Subject: [PATCH] add missing url_for https schema --- src/forest/auth/routes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/forest/auth/routes.py b/src/forest/auth/routes.py index 261bd39..c834bf7 100644 --- a/src/forest/auth/routes.py +++ b/src/forest/auth/routes.py @@ -14,6 +14,7 @@ from models import db, User from io import BytesIO import pyqrcode +import sys @auth.route('/authorize/') def oauth2_authorize(provider): @@ -74,7 +75,7 @@ def oauth2_callback(provider): 'code': request.args['code'], 'grant_type': 'authorization_code', 'redirect_uri': url_for('auth.oauth2_callback', provider=provider, - _external=True), + _external=True, _scheme='https'), }, headers={'Accept': 'application/json'}) if response.status_code != 200: print('oauth response code is not 200', file=sys.stderr)