Compare commits
2 Commits
3bb2edd059
...
master
Author | SHA1 | Date | |
---|---|---|---|
faadf35cc5 | |||
a1f3152474 |
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -943,9 +943,9 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reqwest"
|
name = "reqwest"
|
||||||
version = "0.12.21"
|
version = "0.12.22"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "4c8cea6b35bcceb099f30173754403d2eba0a5dc18cea3630fccd88251909288"
|
checksum = "cbc931937e6ca3a06e3b6c0aa7841849b160a90351d6ab467a8b9b9959767531"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
@ -39,7 +39,7 @@ impl Error for StateError {}
|
|||||||
|
|
||||||
impl fmt::Display for StateError {
|
impl fmt::Display for StateError {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||||
write!(f, "StateManager error {:?}", self)
|
write!(f, "StateManager error {self:?}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ impl OpenIDConfig {
|
|||||||
code: &str,
|
code: &str,
|
||||||
redirect_uri: &str,
|
redirect_uri: &str,
|
||||||
) -> Result<(OpenIDTokenResponse, String), Box<dyn Error>> {
|
) -> Result<(OpenIDTokenResponse, String), Box<dyn Error>> {
|
||||||
let authorization = BASE64_STANDARD.encode(format!("{}:{}", client_id, client_secret));
|
let authorization = BASE64_STANDARD.encode(format!("{client_id}:{client_secret}"));
|
||||||
|
|
||||||
let mut params = HashMap::new();
|
let mut params = HashMap::new();
|
||||||
params.insert("grant_type", "authorization_code");
|
params.insert("grant_type", "authorization_code");
|
||||||
|
@ -56,7 +56,7 @@ impl CryptoWrapper {
|
|||||||
let dec = match aes_key.decrypt(Nonce::from_slice(nonce), enc) {
|
let dec = match aes_key.decrypt(Nonce::from_slice(nonce), enc) {
|
||||||
Ok(d) => d,
|
Ok(d) => d,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::error!("Failed to decrypt wrapped data! {:#?}", e);
|
log::error!("Failed to decrypt wrapped data! {e:#?}");
|
||||||
return Err(Box::new(std::io::Error::other(
|
return Err(Box::new(std::io::Error::other(
|
||||||
"Failed to decrypt wrapped data!",
|
"Failed to decrypt wrapped data!",
|
||||||
)));
|
)));
|
||||||
|
Reference in New Issue
Block a user