From 2a5f555fca7909e10db989de1b2ce36e23627a65 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Wed, 31 Jul 2024 13:27:49 -0700 Subject: [PATCH] Use redirect_uri instead of redirect_url --- src/olympia/accounts/utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/olympia/accounts/utils.py b/src/olympia/accounts/utils.py index d318f6679c12..51464584aeb1 100644 --- a/src/olympia/accounts/utils.py +++ b/src/olympia/accounts/utils.py @@ -29,9 +29,9 @@ def fxa_login_url(config, state, next_path=None, action=None): if next_path and is_safe_url(next_path): state += ':' + urlsafe_b64encode(next_path.encode('utf-8')).rstrip('=') query = { - 'client_id': config['client_id'], - 'redirect_url': config['redirect_url'], - 'scope': config['scope'], + 'client_id': config.get('client_id'), + 'redirect_uri': config.get('redirect_url'), + 'scope': config.get('scope', 'profile'), 'state': state, } if action is not None: