From 987790164e47af77be58580ccee3f0fc4318e9c9 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Tue, 26 May 2020 15:09:57 -0400 Subject: [PATCH] use redirect, not redirect_url. --- crc/api.yml | 2 +- crc/api/user.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crc/api.yml b/crc/api.yml index 65a9a7b9..2160eef2 100644 --- a/crc/api.yml +++ b/crc/api.yml @@ -56,7 +56,7 @@ paths: required: false schema: type: string - - name: redirect_url + - name: redirect in: query required: false schema: diff --git a/crc/api/user.py b/crc/api/user.py index 4920825a..01459526 100644 --- a/crc/api/user.py +++ b/crc/api/user.py @@ -126,7 +126,7 @@ def backdoor( first_name=None, last_name=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. 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']: ldap_info = LdapService().user_info(uid) - return _handle_login(ldap_info, redirect_url) + return _handle_login(ldap_info, redirect) else: raise ApiError('404', 'unknown')