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 097BB6BADD for ; Mon, 14 Dec 2020 08:13:18 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id EB93313479 for ; Mon, 14 Dec 2020 08:12:47 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [212.186.127.180]) (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 firstgate.proxmox.com (Proxmox) with ESMTPS id 320DA1346E for ; Mon, 14 Dec 2020 08:12:47 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id E925D44F9D for ; Mon, 14 Dec 2020 08:12:46 +0100 (CET) Date: Mon, 14 Dec 2020 08:12:40 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox VE development discussion References: <5FD56B860200008800004138@mail.comsolve.nl> <5FD56B860200008800004138@mail.comsolve.nl> In-Reply-To: <5FD56B860200008800004138@mail.comsolve.nl> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1607929849.0i4pachlbl.astroid@nora.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.024 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pve-devel] Feature: OAuth / OpenID-connect implementation 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: Mon, 14 Dec 2020 07:13:18 -0000 On December 13, 2020 2:16 am, Michael Honkoop wrote: > Hi all,=20 >=20 > I am slowly working on implementing the authentication method/ entry fiel= ds for it in PVE, which have shown up, and look to be fine (at first glanc= e). >=20 > There are 2 things i am yes unable to grasp, and i hope you could give me= some directions :=20 >=20 > 1) > UI :=20 > As Oauth/OpenID-connect does not have a need for a field 'tfa', but its i= nherited from the common auth, i'd like to override it ( as in not visible) >=20 > 2) > Schema:=20 > I cant seem to get where a/the schema is defined, or updated for that mat= ter. > I mean i have the UI / auth on the dc level now showing an entry and when= i select add it will spawn the dialog to input parameters. > However if i were to put some text in there and click add it spawns an er= rormessage 'Parameter verification failed. (400)', 'type: value 'oauth' doe= s not have a value in the enumeration 'ad, ldap, pam, pve'' and 'property i= s not defined in schema and the schema does not allow additional properties= ' >=20 > i've been searching where i can define it but this still have not found, = or better said due to my newness in this i'm not following where it is/shou= ld be defined. the possible realm types are defined here: https://git.proxmox.com/?p=3Dpve-access-control.git;a=3Dblob;f=3DPVE/API2/= Domains.pm;h=3D9c2b2548028790f19baaa81bde4cf0f071bb7719;hb=3DHEAD#l86 https://git.proxmox.com/?p=3Dpve-access-control.git;a=3Dblob;f=3DPVE/Auth/= Plugin.pm;h=3D141305336c8640dd40879eb6e084b95c51ad0fa7;hb=3DHEAD https://git.proxmox.com/?p=3Dpve-access-control.git;a=3Dtree;f=3DPVE/Auth;= h=3D935646bae7647759c8b9ac04881275affb184500;hb=3DHEAD each type registers as a plugin in the SectionConfig (which is in=20 pve-common), the add/update/delete schemas are generated from the plugin=20 definitions. >=20 > best regards,=20 >=20 > Michael Honkoop >=20 >=20 > _______________________________________________ > pve-devel mailing list > pve-devel@lists.proxmox.com > https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel >=20 >=20 >=20 =