Skip to content

Commit

Permalink
Sort clients for dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieJC committed Aug 2, 2024
1 parent 11149bb commit 4086703
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions sso_oidc.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ def get_clients() -> dict:
if not IS_PROD:
jprint({"function": "get_clients", "clients": res})

res = dict(
sorted(
res.items(),
key=lambda item: item[1].get("name", ""),
)
)

for c in res:
if "client_id" not in res[c]:
res[c]["client_id"] = c
Expand Down

0 comments on commit 4086703

Please # to comment.