Skip to content

Commit

Permalink
Replace https in filename
Browse files Browse the repository at this point in the history
The slashes lead S3 to file the new JSON somewhere weird, so this will strip that out
  • Loading branch information
jonodrew committed Jun 21, 2024
1 parent f08ea7a commit 11149bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 11149bb

Please sign in to comment.