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 BE3E36C35B for ; Fri, 6 Aug 2021 13:58:18 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 72946D44C for ; Fri, 6 Aug 2021 13:57:48 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (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 35630D420 for ; Fri, 6 Aug 2021 13:57:47 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 0065742F57; Fri, 6 Aug 2021 13:57:47 +0200 (CEST) From: Dietmar Maurer To: pbs-devel@lists.proxmox.com Date: Fri, 6 Aug 2021 13:57:37 +0200 Message-Id: <20210806115744.1959420-2-dietmar@proxmox.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210806115744.1959420-1-dietmar@proxmox.com> References: <20210806115744.1959420-1-dietmar@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.467 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_NUMSUBJECT 0.5 Subject ends in numbers excluding current years SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [mod.rs] Subject: [pbs-devel] [PATCH pve-rs] depend on proxmox-openid 0.7.0, bump version to 0.3.0 X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 11:58:18 -0000 --- Cargo.toml | 2 +- debian/changelog | 8 ++++++++ src/openid/mod.rs | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 736bc49..ef8c27c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,5 +20,5 @@ anyhow = "1.0" proxmox = { version = "0.12.1", default-features = false } perlmod = { version = "0.5.2", features = [ "exporter" ] } proxmox-apt = "0.6.0" -proxmox-openid = "0.6.1" +proxmox-openid = "0.7.0" serde = "1.0" diff --git a/debian/changelog b/debian/changelog index b247a35..33ab4a6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +libpve-rs-perl (0.3.0) bullseye; urgency=medium + + * depend on proxmox-openid 0.7.0 (support prompt an d scopes) + + * openid: use new verify_authorization_code_simple() to return all claims + + -- Proxmox Support Team Fri, 06 Aug 2021 08:48:59 +0200 + libpve-rs-perl (0.2.3) bullseye; urgency=medium * use newer dependencies for apt to improve repo+suite handling diff --git a/src/openid/mod.rs b/src/openid/mod.rs index febe927..aa31f9c 100644 --- a/src/openid/mod.rs +++ b/src/openid/mod.rs @@ -81,7 +81,7 @@ mod export { ) -> Result { let open_id = this.inner.lock().unwrap(); - let claims = open_id.verify_authorization_code(code, &private_auth_state)?; + let claims = open_id.verify_authorization_code_simple(code, &private_auth_state)?; Ok(to_value(&claims)?) } -- 2.30.2