mirror of
https://git.proxmox.com/git/proxmox-perl-rs
synced 2025-05-23 10:00:16 +00:00
pve-rs: depend on proxmox-openid 0.9, bump version to 0.4.0
This commit is contained in:
parent
42dbadec03
commit
544f85bb89
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "pve-rs"
|
name = "pve-rs"
|
||||||
version = "0.3.2"
|
version = "0.4.0"
|
||||||
authors = ["Proxmox Support Team <support@proxmox.com>"]
|
authors = ["Proxmox Support Team <support@proxmox.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license = "AGPL-3"
|
license = "AGPL-3"
|
||||||
@ -29,5 +29,5 @@ serde_json = "1.0"
|
|||||||
perlmod = { version = "0.8.1", features = [ "exporter" ] }
|
perlmod = { version = "0.8.1", features = [ "exporter" ] }
|
||||||
|
|
||||||
proxmox-apt = "0.8"
|
proxmox-apt = "0.8"
|
||||||
proxmox-openid = "0.8"
|
proxmox-openid = "0.9"
|
||||||
proxmox-tfa = { version = "1.3", features = ["api"] }
|
proxmox-tfa = { version = "1.3", features = ["api"] }
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
libpve-rs-perl (0.4.0) bullseye; urgency=medium
|
||||||
|
|
||||||
|
* depend on proxmox-openid 0.0 (support prompt and scopes)
|
||||||
|
|
||||||
|
* openid: use new verify_authorization_code_simple() to return all claims
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Thu, 18 Nov 2021 09:52:26 +0100
|
||||||
|
|
||||||
libpve-rs-perl (0.3.2) bullseye; urgency=medium
|
libpve-rs-perl (0.3.2) bullseye; urgency=medium
|
||||||
|
|
||||||
* generate an explicit 'incompatible' tfa entry for the old ticket api if a
|
* generate an explicit 'incompatible' tfa entry for the old ticket api if a
|
||||||
|
@ -16,7 +16,7 @@ Build-Depends: debhelper (>= 12),
|
|||||||
librust-perlmod-0.8+default-dev (>= 0.8.1-~~),
|
librust-perlmod-0.8+default-dev (>= 0.8.1-~~),
|
||||||
librust-perlmod-0.8+exporter-dev (>= 0.8.1-~~),
|
librust-perlmod-0.8+exporter-dev (>= 0.8.1-~~),
|
||||||
librust-proxmox-apt-0.8+default-dev,
|
librust-proxmox-apt-0.8+default-dev,
|
||||||
librust-proxmox-openid-0.8+default-dev,
|
librust-proxmox-openid-0.9+default-dev,
|
||||||
librust-proxmox-tfa-1+api-dev (>= 1.3-~~),
|
librust-proxmox-tfa-1+api-dev (>= 1.3-~~),
|
||||||
librust-proxmox-tfa-1+default-dev (>= 1.3-~~),
|
librust-proxmox-tfa-1+default-dev (>= 1.3-~~),
|
||||||
librust-serde-1+default-dev,
|
librust-serde-1+default-dev,
|
||||||
|
@ -81,7 +81,7 @@ mod export {
|
|||||||
) -> Result<Value, Error> {
|
) -> Result<Value, Error> {
|
||||||
|
|
||||||
let open_id = this.inner.lock().unwrap();
|
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)?)
|
Ok(to_value(&claims)?)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user