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 committed by Adam Ierymenko
parent 1c171b5d99
commit 73ec8cddd7
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
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;
}