Skip to content

Commit

Permalink
Make 'owners' a list
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jonodrew committed Jun 21, 2024
1 parent 80e3ede commit e7f3c1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit e7f3c1b

Please sign in to comment.