update: fixed redirect uri

This commit is contained in:
Maix0 2024-09-28 12:23:48 +02:00
parent 67e778a8f8
commit c98f01ebf7

View file

@ -104,7 +104,7 @@ async fn main() {
let http = reqwest::ClientBuilder::new() let http = reqwest::ClientBuilder::new()
// Following redirects opens the client up to SSRF vulnerabilities. // Following redirects opens the client up to SSRF vulnerabilities.
.redirect(reqwest::redirect::Policy::none()) .redirect(reqwest::redirect::Policy::none())
.user_agent("AlterPoste/1.0") .user_agent("AlertePoste/1.0")
.tls_info(true) .tls_info(true)
.min_tls_version(Version::TLS_1_0) .min_tls_version(Version::TLS_1_0)
.max_tls_version(Version::TLS_1_2) .max_tls_version(Version::TLS_1_2)
@ -120,7 +120,7 @@ async fn main() {
http.clone(), http.clone(),
unwrap_env!("CLIENT_ID"), unwrap_env!("CLIENT_ID"),
unwrap_env!("CLIENT_SECRET"), unwrap_env!("CLIENT_SECRET"),
"http://local.maix.me:9911/auth/callback", "https://t.maix.me/auth/callback",
) )
.await .await
.unwrap(); .unwrap();