From 59fcf22361442e7edd70c09b2f20ff17b2e7bba4 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 16 Mar 2022 23:06:19 +0530 Subject: [PATCH] fix: edit params mapping correct --- .../Clients/ClientAttributesPanel.js | 2 +- .../components/Clients/ClientWizardForm.js | 28 +++++++++++++------ 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/admin-ui/plugins/auth-server/components/Clients/ClientAttributesPanel.js b/admin-ui/plugins/auth-server/components/Clients/ClientAttributesPanel.js index 5b0fec757..2f4ea90a9 100644 --- a/admin-ui/plugins/auth-server/components/Clients/ClientAttributesPanel.js +++ b/admin-ui/plugins/auth-server/components/Clients/ClientAttributesPanel.js @@ -1,5 +1,5 @@ import React from 'react' -import { Container} from '../../../../app/components' +import { Container } from '../../../../app/components' import GluuBooleanSelectBox from '../../../../app/routes/Apps/Gluu/GluuBooleanSelectBox' import GluuInputRow from '../../../../app/routes/Apps/Gluu/GluuInputRow' import GluuTypeAheadWithAdd from '../../../../app/routes/Apps/Gluu/GluuTypeAheadWithAdd' diff --git a/admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js b/admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js index 5ae40edb1..1c515d281 100644 --- a/admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js +++ b/admin-ui/plugins/auth-server/components/Clients/ClientWizardForm.js @@ -165,7 +165,7 @@ function ClientWizardForm({ jwksUri: client.jwksUri, jwks: client.jwks, expirable: [], - expirationDate: new Date(), + expirationDate: client.expirationDate, softwareStatement: client.softwareStatement, softwareVersion: client.softwareVersion, softwareId: client.softwareId, @@ -183,6 +183,16 @@ function ClientWizardForm({ userInfoSignedResponseAlg: client.userInfoSignedResponseAlg, userInfoEncryptedResponseEnc: client.userInfoEncryptedResponseEnc, authenticationMethod: client.authenticationMethod, + idTokenTokenBindingCnf: client.idTokenTokenBindingCnf, + backchannelUserCodeParameter: client.backchannelUserCodeParameter, + refreshTokenLifetime: client.refreshTokenLifetime, + defaultMaxAge: client.defaultMaxAge, + accessTokenLifetime: client.accessTokenLifetime, + backchannelTokenDeliveryMode: client.backchannelTokenDeliveryMode, + backchannelClientNotificationEndpoint: + client.backchannelClientNotificationEndpoint, + frontChannelLogoutUri: client.frontChannelLogoutUri, + backchannelUserCodeParameter: client.backchannelUserCodeParameter, policyUri: client.policyUri, logoURI: client.logoURI, @@ -200,22 +210,24 @@ function ClientWizardForm({ oxAuthClaims: client.oxAuthClaims, customAttributes: client.customAttributes, attributes: client.attributes, - tlsClientAuthSubjectDn: client.tlsClientAuthSubjectDn, + tlsClientAuthSubjectDn: client.attributes.tlsClientAuthSubjectDn, frontChannelLogoutSessionRequired: client.frontChannelLogoutSessionRequired, runIntrospectionScriptBeforeAccessTokenAsJwtCreationAndIncludeClaims: - client.runIntrospectionScriptBeforeAccessTokenAsJwtCreationAndIncludeClaims, - backchannelLogoutSessionRequired: client.backchannelLogoutSessionRequired, + client.attributes + .runIntrospectionScriptBeforeAccessTokenAsJwtCreationAndIncludeClaims, + backchannelLogoutSessionRequired: + client.attributes.backchannelLogoutSessionRequired, keepClientAuthorizationAfterExpiration: - client.keepClientAuthorizationAfterExpiration, - allowSpontaneousScopes: client.allowSpontaneousScopes, + client.attributes.keepClientAuthorizationAfterExpiration, + allowSpontaneousScopes: client.attributes.allowSpontaneousScopes, spontaneousScopes: client.spontaneousScopes, introspectionScripts: client.introspectionScripts, spontaneousScopeScriptDns: client.spontaneousScopeScriptDns, consentGatheringScripts: client.consentGatheringScripts, postAuthnScripts: client.postAuthnScripts, rptClaimsScripts: client.rptClaimsScripts, - additionalAudience: client.additionalAudience, - backchannelLogoutUri: client.backchannelLogoutUri, + additionalAudience: client.attributes.additionalAudience, + backchannelLogoutUri: client.attributes.backchannelLogoutUri, customObjectClasses: client.customObjectClasses, requireAuthTime: client.requireAuthTime, trustedClient: client.trustedClient,