From 11149bb77465a6a7c26c46397d28558562dbe2af Mon Sep 17 00:00:00 2001 From: "jonathan.kerr" Date: Fri, 21 Jun 2024 14:29:58 +0100 Subject: [PATCH] Replace https in filename The slashes lead S3 to file the new JSON somewhere weird, so this will strip that out --- wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsgi.py b/wsgi.py index 255cb45..92d35dd 100644 --- a/wsgi.py +++ b/wsgi.py @@ -1417,7 +1417,7 @@ def new_client(): redirect_urls = [url.strip() for url in request_dict.get("redirect_urls").split(",")] request_dict["redirect_urls"] = redirect_urls sso_oidc.save_client( - filename=f"{request_dict['app_url']}_{uuid.uuid4().hex}.json", + filename=f"{request_dict['app_url'].replace('https://', '')}_{uuid.uuid4().hex}.json", client={"secret": client_secret, "allowed_domains": [user_domain], **request_dict}, client_id=client_id )