diff --git a/debian/control b/debian/control index efdaf0cb..dd4a239e 100644 --- a/debian/control +++ b/debian/control @@ -45,10 +45,10 @@ Provides: librust-proxmox-openid+default-dev (= ${binary:Version}), librust-proxmox-openid-0-dev (= ${binary:Version}), librust-proxmox-openid-0+default-dev (= ${binary:Version}), - librust-proxmox-openid-0.1-dev (= ${binary:Version}), - librust-proxmox-openid-0.1+default-dev (= ${binary:Version}), - librust-proxmox-openid-0.1.0-dev (= ${binary:Version}), - librust-proxmox-openid-0.1.0+default-dev (= ${binary:Version}) + librust-proxmox-openid-0.2-dev (= ${binary:Version}), + librust-proxmox-openid-0.2+default-dev (= ${binary:Version}), + librust-proxmox-openid-0.2.0-dev (= ${binary:Version}), + librust-proxmox-openid-0.2.0+default-dev (= ${binary:Version}) Description: Rust crate "proxmox-openid" - Rust source code This package contains the source for the Rust proxmox-openid crate, packaged by debcargo for use with cargo and dh-cargo. diff --git a/src/lib.rs b/src/lib.rs index bf9c0568..a1614cd6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,6 @@ use std::path::Path; use anyhow::{format_err, Error}; use serde::{Deserialize, Serialize}; -use url::Url; mod http_client; pub use http_client::http_client; @@ -115,7 +114,7 @@ impl OpenIdAuthenticator { }) } - pub fn authorize_url(&self, state_dir: &str, realm: &str) -> Result { + pub fn authorize_url(&self, state_dir: &str, realm: &str) -> Result { let private_auth_state = PrivateAuthState::new(); let public_auth_state = private_auth_state.public_state_string(realm.to_string())?; @@ -137,7 +136,7 @@ impl OpenIdAuthenticator { .set_pkce_challenge(private_auth_state.pkce_challenge()) .url(); - Ok(authorize_url.into()) + Ok(authorize_url.to_string()) } pub fn verify_public_auth_state(