add missing url_for https schema
This commit is contained in:
parent
209f6acbfc
commit
f415a74a07
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ from models import db, User
|
||||||
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
import pyqrcode
|
import pyqrcode
|
||||||
|
import sys
|
||||||
|
|
||||||
@auth.route('/authorize/<provider>')
|
@auth.route('/authorize/<provider>')
|
||||||
def oauth2_authorize(provider):
|
def oauth2_authorize(provider):
|
||||||
|
@ -74,7 +75,7 @@ def oauth2_callback(provider):
|
||||||
'code': request.args['code'],
|
'code': request.args['code'],
|
||||||
'grant_type': 'authorization_code',
|
'grant_type': 'authorization_code',
|
||||||
'redirect_uri': url_for('auth.oauth2_callback', provider=provider,
|
'redirect_uri': url_for('auth.oauth2_callback', provider=provider,
|
||||||
_external=True),
|
_external=True, _scheme='https'),
|
||||||
}, headers={'Accept': 'application/json'})
|
}, headers={'Accept': 'application/json'})
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
print('oauth response code is not 200', file=sys.stderr)
|
print('oauth response code is not 200', file=sys.stderr)
|
||||||
|
|
Loading…
Reference in a new issue