mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-22 12:48:25 +00:00
use redirect, not redirect_url.
This commit is contained in:
parent
eb92ee9fb6
commit
987790164e
@ -56,7 +56,7 @@ paths:
|
|||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
type: string
|
type: string
|
||||||
- name: redirect_url
|
- name: redirect
|
||||||
in: query
|
in: query
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
|
@ -126,7 +126,7 @@ def backdoor(
|
|||||||
first_name=None,
|
first_name=None,
|
||||||
last_name=None,
|
last_name=None,
|
||||||
title=None,
|
title=None,
|
||||||
redirect_url=None,
|
redirect=None,
|
||||||
):
|
):
|
||||||
"""A backdoor for end-to-end system testing that allows the system to simulate logging in as a specific user.
|
"""A backdoor for end-to-end system testing that allows the system to simulate logging in as a specific user.
|
||||||
Only works if the application is running in a non-production environment.
|
Only works if the application is running in a non-production environment.
|
||||||
@ -151,6 +151,6 @@ def backdoor(
|
|||||||
if not 'PRODUCTION' in app.config or not app.config['PRODUCTION']:
|
if not 'PRODUCTION' in app.config or not app.config['PRODUCTION']:
|
||||||
|
|
||||||
ldap_info = LdapService().user_info(uid)
|
ldap_info = LdapService().user_info(uid)
|
||||||
return _handle_login(ldap_info, redirect_url)
|
return _handle_login(ldap_info, redirect)
|
||||||
else:
|
else:
|
||||||
raise ApiError('404', 'unknown')
|
raise ApiError('404', 'unknown')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user