Skip to content

Commit

Permalink
normalize custom authz server before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanharikr committed Sep 17, 2024
1 parent 61a0a51 commit b9602b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
//add issuer authz endpoint to existing authz servers
states.custom_authorization_servers = [
...new Set([...states.custom_authorization_servers, authorization_endpoint]) //dedupe
...new Set([...states.custom_authorization_servers, authorization_endpoint.toLowerCase()]) //dedupe
];
states.selected_authorization_server = authorization_endpoint;
Expand Down Expand Up @@ -605,7 +605,7 @@
url = new URL(custom_authorization_server);
}
states.custom_authorization_servers = [
...new Set([...states.custom_authorization_servers, url.href]) //dedupe
...new Set([...states.custom_authorization_servers, url.href.toLowerCase()]) //dedupe
];
states.selected_authorization_server = url.href;
custom_authorization_server = '';
Expand Down

0 comments on commit b9602b4

Please sign in to comment.