fix redirect_url callback by Polizei
This commit is contained in:
parent
7a99ae7dfb
commit
7a91599282
1 changed files with 1 additions and 2 deletions
|
@ -30,7 +30,7 @@ def oauth2_authorize(provider):
|
||||||
qs = urlencode({
|
qs = urlencode({
|
||||||
'client_id': provider_data['client_id'],
|
'client_id': provider_data['client_id'],
|
||||||
'redirect_uri': url_for('auth.oauth2_callback', provider=provider,
|
'redirect_uri': url_for('auth.oauth2_callback', provider=provider,
|
||||||
_external=True),
|
_external=True, _scheme='https'),
|
||||||
'response_type': 'code',
|
'response_type': 'code',
|
||||||
'scope': ' '.join(provider_data['scopes']),
|
'scope': ' '.join(provider_data['scopes']),
|
||||||
'state': session['oauth2_state'],
|
'state': session['oauth2_state'],
|
||||||
|
@ -110,7 +110,6 @@ def before_request():
|
||||||
print(request.endpoint)
|
print(request.endpoint)
|
||||||
return redirect(url_for('auth.unconfirmed'))
|
return redirect(url_for('auth.unconfirmed'))
|
||||||
|
|
||||||
|
|
||||||
@auth.route('/unconfirmed')
|
@auth.route('/unconfirmed')
|
||||||
def unconfirmed():
|
def unconfirmed():
|
||||||
if current_user.is_anonymous or current_user.confirmed:
|
if current_user.is_anonymous or current_user.confirmed:
|
||||||
|
|
Loading…
Reference in a new issue