fix redirect_url callback by Polizei

This commit is contained in:
deflax 2024-04-06 19:45:21 +03:00
parent 7a99ae7dfb
commit 7a91599282

View file

@ -30,7 +30,7 @@ def oauth2_authorize(provider):
qs = urlencode({
'client_id': provider_data['client_id'],
'redirect_uri': url_for('auth.oauth2_callback', provider=provider,
_external=True),
_external=True, _scheme='https'),
'response_type': 'code',
'scope': ' '.join(provider_data['scopes']),
'state': session['oauth2_state'],
@ -110,7 +110,6 @@ def before_request():
print(request.endpoint)
return redirect(url_for('auth.unconfirmed'))
@auth.route('/unconfirmed')
def unconfirmed():
if current_user.is_anonymous or current_user.confirmed: