Show sso errors on the last step of the oidc process

This commit is contained in:
Grant Limberg
2022-03-10 12:59:26 -08:00
parent 93076dde56
commit 3f19e7d73c
2 changed files with 63 additions and 38 deletions

View File

@@ -325,6 +325,13 @@ impl ZeroIDC {
println!("Central post failed: {}", r.status().to_string());
println!("hit url: {}", r.url().as_str());
println!("Status: {}", r.status());
if let Ok(body) = r.bytes() {
if let Ok(body) = std::str::from_utf8(&body) {
println!("Body: {}", body);
}
}
(*inner_local.lock().unwrap()).exp_time = 0;
(*inner_local.lock().unwrap()).running = false;
}