From e7f3c1bebcdbf4fffef5dd51f8be08b9f5a7dfaf Mon Sep 17 00:00:00 2001 From: "jonathan.kerr" Date: Fri, 21 Jun 2024 11:25:51 +0100 Subject: [PATCH] Make 'owners' a list I've coerced the 'owner' field from the new-client page into a list, to allow for the checks in the dashboard route to work --- wsgi.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wsgi.py b/wsgi.py index 68466b1..9cc1963 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1413,6 +1413,7 @@ def new_client(): client_secret = client_secret_dict.get("client_secret") request_dict = request.form.to_dict() user_domain = request_dict.get("owner").split("@")[1] + request_dict["owners"] = [request_dict.get("owner")] sso_oidc.save_client( filename=f"{request_dict['app_url']}_{uuid.uuid4().hex}.json", client={"secret": client_secret, "allowed_domains": [user_domain], **request_dict},