Commit 98e93100 authored by Tom Darneix's avatar Tom Darneix
Browse files

fix(UI): Fix missing properties on payload (#10938)

* Fix missing property on payload

* fix test
parent 13120d60
......@@ -50,8 +50,8 @@ const retrievedWebSSOConfiguration = {
is_active: true,
is_forced: false,
login_header_attribute: '',
pattern_matching_login: '',
pattern_replace_login: '',
pattern_matching_login: null,
pattern_replace_login: null,
trusted_client_addresses: ['127.0.0.1'],
};
......
......@@ -84,21 +84,21 @@ export const adaptOpenidConfigurationToAPI = ({
userinfoEndpoint,
verifyPeer,
}: OpenidConfiguration): OpenidConfigurationToAPI => ({
authentication_type: authenticationType,
authorization_endpoint: authorizationEndpoint,
base_url: baseUrl,
authentication_type: authenticationType || null,
authorization_endpoint: authorizationEndpoint || null,
base_url: baseUrl || null,
blacklist_client_addresses: blacklistClientAddresses,
client_id: clientId,
client_secret: clientSecret,
client_id: clientId || null,
client_secret: clientSecret || null,
connection_scopes: connectionScopes,
endsession_endpoint: endSessionEndpoint,
introspection_token_endpoint: introspectionTokenEndpoint,
endsession_endpoint: endSessionEndpoint || null,
introspection_token_endpoint: introspectionTokenEndpoint || null,
is_active: isActive,
is_forced: isForced,
login_claim: loginClaim,
token_endpoint: tokenEndpoint,
login_claim: loginClaim || null,
token_endpoint: tokenEndpoint || null,
trusted_client_addresses: trustedClientAddresses,
userinfo_endpoint: userinfoEndpoint,
userinfo_endpoint: userinfoEndpoint || null,
verify_peer: verifyPeer,
});
......@@ -114,8 +114,8 @@ export const adaptWebSSOConfigurationToAPI = ({
blacklist_client_addresses: blacklistClientAddresses,
is_active: isActive,
is_forced: isForced,
login_header_attribute: loginHeaderAttribute,
pattern_matching_login: patternMatchingLogin,
pattern_replace_login: patternReplaceLogin,
login_header_attribute: loginHeaderAttribute || null,
pattern_matching_login: patternMatchingLogin || null,
pattern_replace_login: patternReplaceLogin || null,
trusted_client_addresses: trustedClientAddresses,
});
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment