From c98f01ebf7610acca6aa950f3b967070935ac34b Mon Sep 17 00:00:00 2001 From: Maix0 Date: Sat, 28 Sep 2024 12:23:48 +0200 Subject: [PATCH] update: fixed redirect uri --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6f5fc57..7ba60e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,7 +104,7 @@ async fn main() { let http = reqwest::ClientBuilder::new() // Following redirects opens the client up to SSRF vulnerabilities. .redirect(reqwest::redirect::Policy::none()) - .user_agent("AlterPoste/1.0") + .user_agent("AlertePoste/1.0") .tls_info(true) .min_tls_version(Version::TLS_1_0) .max_tls_version(Version::TLS_1_2) @@ -120,7 +120,7 @@ async fn main() { http.clone(), unwrap_env!("CLIENT_ID"), unwrap_env!("CLIENT_SECRET"), - "http://local.maix.me:9911/auth/callback", + "https://t.maix.me/auth/callback", ) .await .unwrap();