From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 26B1A91B41 for ; Thu, 15 Feb 2024 22:33:08 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0FA7419A92 for ; Thu, 15 Feb 2024 22:33:08 +0100 (CET) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 15 Feb 2024 22:33:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=danwalex.com; s=s1-ionos; t=1708032786; x=1708637586; i=alexis@danwalex.com; bh=rTxzJDi67EFbqVytwMVY5nIIEE8kWznY/xNdplhHW7M=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=FKqzme1q67y0IEM7811lLJ3TwUrZb+kqc7Pahp4hKik5Vv7pjOD4oORxxazEtyRd Dxx7WQWq2b4t09hNhMbbdjdCX5RH6ELDgHZEwlPEymLxD1rvHce692J4EEOwI75TB 5vMXoMdRZ+4ivqondKINHEvXGz6nRPgAls40UOsfmPBkS3kEbINouQwb9AnOK4kuj 8nWYBJEmxtTC+C9rV6tPazQWmmTqeQdFnM4zdJ6BBVJP1PU2YTfkQ8awg/WzYTasD XoRUn4UC//+2mGkE0KLGvMl22aOaaVpx8FfZqZiV5Hm7Ew1euUIfV7/AL2mhILuaq XTSYyh9cLDDBhQX7/Q== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from localhost.localdomain ([90.26.182.239]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.103]) with ESMTPSA (Nemesis) id 1MekvV-1r0ZVR2lBl-00al2m; Thu, 15 Feb 2024 22:27:56 +0100 From: Alexis | Dawnalex To: pve-devel@lists.proxmox.com Date: Thu, 15 Feb 2024 22:27:01 +0100 Message-ID: <20240215212739.602-2-alexis@danwalex.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240215212739.602-1-alexis@danwalex.com> References: <20240215212739.602-1-alexis@danwalex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=y Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:79OmmOxWttp2GMgBgZsAOiizB5+hOZcTFG80812MKsQ/D5ZD4fS kVsn2BLJdYQTTkLMO9FFs+kZYHwoWK2FWBew506KKJG+7dW1mVKStFWVN8Iae/mkQI35/X6 FP3yFzfMcAh27UuyFtc9dBT8LKbWWZTW3yn4UoNq/qdcOhxNhSrD18A6ZbzBulhO4NLSJD+ 2vQ+/PNzRf5xtXPmoekFA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:9Jjwse1WDKE=;pDH2pLhEVTSkfDM4BCIbM7qVXOm wJIBMLRoOHxredwBCKvO87X2Mz/qpEtMZ68zq6Tm0rbY5awubKNw2N4uwdElaRVdEDHiKINFy /5xyjZ/2iY/xYauLbshmGJAwoM1I3uWH2qhWP1Kwt315Er0wbcv1dmd0RfNo317gbhLtHb+OY yedMNa+pNRw8739FBqdDo3zrUq4Z5t9YRfcj9V7mkQVxNQAihdCgyadgFxIjAxV/EOLlE+MSU oZBe+52ySlkHygwIKzXcNfwxyiny4kEgoGuLfnAYPNOO98cGdqWHZwYk2Bs1cxHDda3OQC7hq vZMyr2WJ+nNYM5oPlJ1dvgLppegXmzl6kFUg4BiZL4gb6UhJmFH/xpPsmGx5IAojhediYa/xs twp+NzQcyiIbxKJnzGoOhIPfQgwn8EyUxITWuyNNcl/ji25WkxvM5XFDrxwoFWWTfYd3KPaji R8bJ/ZaXEYz8HSjOjO2B599H/0WjAvOfycIxw6rh5AwPgAD/yR4yppqIOL1y2AvSBxEXSUgLk NvhomzVL+sP0laQbUt51t7Ra4wt9g8ui35lwKMifD7uaggAA4BFeOUaA/P9OTsbQacJeh7+Xz FmmlB6OEDBvu1ogpsjVwlLKcYjgeE5dCDu/yPgWr9jBaYLAHb6B7374v5uXxhgo0q+bbn0H7A 6ndHfNnAQ3KFxUy5wudahcq1hna/p9fuIsVxIqGqImXB4aKM2FwhgQYR/icgM4/qeBR144pjN 6FVq0LeVZgixKwcvJ+dBLk2rTWohG8HnT8F0uFUA6t8rxakBlmtN2A= X-SPAM-LEVEL: Spam detection results: 0 BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_INVALID 0.1 DKIM or DK signature exists, but is not valid DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust RCVD_IN_MSPIKE_H3 0.001 Good reputation (+3) RCVD_IN_MSPIKE_WL 0.001 Mailspike good senders SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [danwalex.com] Subject: [pve-devel] [PATCH manager] Update UI and backend integration for OpenID group creation X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2024 21:33:08 -0000 This commit introduces significant updates to the UI and backend to suppor= t group creation through OpenID. Changes include modifications to the fron= tend to accommodate new group management functionalities and backend enhan= cements for seamless OpenID integration. Signed-off-by: Alexis | Dawnalex =2D-- www/manager6/dc/AuthEditOpenId.js | 84 ++++++++++++++++++++++++------- 1 file changed, 65 insertions(+), 19 deletions(-) diff --git a/www/manager6/dc/AuthEditOpenId.js b/www/manager6/dc/AuthEditO= penId.js index 544c0de5..c6b5e5be 100644 =2D-- a/www/manager6/dc/AuthEditOpenId.js +++ b/www/manager6/dc/AuthEditOpenId.js @@ -6,15 +6,33 @@ Ext.define('PVE.panel.OpenIDInputPanel', { onGetValues: function(values) { let me =3D this; + if (values['client-key'] =3D=3D=3D gettext('Unchanged')) { + delete values['client-key']; + } if (!values.verify) { if (!me.isCreate) { - Proxmox.Utils.assemble_field_data(values, { 'delete': 'verify' }); + if (values['client-key'] =3D=3D=3D gettext('Unchanged')) { + delete values['client-key']; + }else{ + Proxmox.Utils.assemble_field_data(values, { 'delete': 'verify' }); + } } delete values.verify; + } - + return me.callParent([values]); }, + setValues: function(values) { + let me =3D this; + + // D=C3=A9finir "Unchanged" pour client-key uniquement en mode = =C3=A9dition + if (!me.isCreate && values['client-key']) { + values['client-key'] =3D undefined; + } + + return me.callParent([values]); + }, columnT: [ { @@ -33,25 +51,18 @@ Ext.define('PVE.panel.OpenIDInputPanel', { allowBlank: false, }, { - xtype: 'proxmoxtextfield', - fieldLabel: gettext('Client Key'), - cbind: { - deleteEmpty: '{!isCreate}', - }, - name: 'client-key', + xtype: 'proxmoxtextfield', + fieldLabel: gettext('Client Key'), + emptyText: gettext('Unchanged'), + cbind: { + deleteEmpty: '{!isCreate}', + }, + name: 'client-key', }, ], column2: [ - { - xtype: 'proxmoxcheckbox', - fieldLabel: gettext('Autocreate Users'), - name: 'autocreate', - value: 0, - cbind: { - deleteEmpty: '{!isCreate}', - }, - }, + { xtype: 'pmxDisplayEditField', name: 'username-claim', @@ -82,6 +93,7 @@ Ext.define('PVE.panel.OpenIDInputPanel', { deleteEmpty: '{!isCreate}', }, }, + { xtype: 'proxmoxKVComboBox', name: 'prompt', @@ -101,6 +113,41 @@ Ext.define('PVE.panel.OpenIDInputPanel', { }, ], + columnB: [ + { + xtype: 'fieldset', + title: gettext('Options for OpenID Connect'), + items: [ + // sync option with filter group option for openid connect, so we can u= se the same + + { + xtype: 'proxmoxtextfield', + fieldLabel: gettext('Groups Filter'), + name: 'groups-filter', + deleteEmpty: true, + submitEmpty: false, + cbind: { + deleteEmpty: '{!isCreate}', + }, + }, + { + xtype: 'proxmoxcheckbox', + fieldLabel: gettext('Autocreate Users'), + name: 'autocreate', + boxLabel: gettext('Create User if not exists Automatically'), + }, + { + xtype: 'proxmoxcheckbox', + fieldLabel: gettext('Auto Sync Groups'), + name: 'autocreate-groups', + boxLabel: gettext('Create Groups Automatically'), + }, + + ], + + + }, + ], advancedColumnB: [ { xtype: 'proxmoxtextfield', @@ -122,5 +169,4 @@ Ext.define('PVE.panel.OpenIDInputPanel', { me.callParent(); }, -}); - +}); \ No newline at end of file =2D- 2.43.0.windows.1