diff --git a/frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx b/frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx index d6cb4e64ac7a..de810d4afd34 100644 --- a/frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx +++ b/frontend/src/component/admin/auth/OidcAuth/OidcAuth.tsx @@ -59,6 +59,10 @@ export const OidcAuth = () => { setValue(event.target.name, event.target.value); }; + const trimAndUpdateField = (event: React.ChangeEvent) => { + setValue(event.target.name, event.target.value.trim()); + }; + const updateEnabled = () => { setData({ ...data, enabled: !data.enabled }); }; @@ -146,7 +150,7 @@ export const OidcAuth = () => { { { { setValue(event.target.name, event.target.value); }; + const trimAndUpdateField = (event: React.ChangeEvent) => { + setValue(event.target.name, event.target.value.trim()); + }; + const updateEnabled = () => { setData({ ...data, enabled: !data.enabled }); }; @@ -137,7 +141,7 @@ export const SamlAuth = () => { { {