mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
sso error handling
This commit is contained in:
parent
ff670d044a
commit
64a5e0d93f
1 changed files with 9 additions and 0 deletions
|
@ -354,15 +354,21 @@ impl ZeroIDC {
|
|||
}
|
||||
None => {
|
||||
println!("no id token?!?");
|
||||
(*inner_local.lock().unwrap()).exp_time = 0;
|
||||
(*inner_local.lock().unwrap()).running = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Err(e) => {
|
||||
println!("token error: {}", e);
|
||||
(*inner_local.lock().unwrap()).exp_time = 0;
|
||||
(*inner_local.lock().unwrap()).running = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
println!("token response??");
|
||||
(*inner_local.lock().unwrap()).exp_time = 0;
|
||||
(*inner_local.lock().unwrap()).running = false;
|
||||
}
|
||||
} else {
|
||||
#[cfg(debug_assertions)]
|
||||
|
@ -370,6 +376,8 @@ impl ZeroIDC {
|
|||
}
|
||||
} else {
|
||||
println!("no refresh token?");
|
||||
(*inner_local.lock().unwrap()).exp_time = 0;
|
||||
(*inner_local.lock().unwrap()).running = false;
|
||||
}
|
||||
|
||||
sleep(Duration::from_secs(1));
|
||||
|
@ -377,6 +385,7 @@ impl ZeroIDC {
|
|||
running = (*inner_local.lock().unwrap()).running;
|
||||
}
|
||||
}
|
||||
// end run loop
|
||||
|
||||
println!("thread done!");
|
||||
(*inner_local.lock().unwrap()).running = false;
|
||||
|
|
Loading…
Add table
Reference in a new issue