lots more refactoring

This commit is contained in:
Grant Limberg 2021-11-29 14:11:29 -08:00
parent 87fdd644d4
commit 5f548705dd
No known key found for this signature in database
GPG key ID: 2BA62CCABBB4095A
3 changed files with 256 additions and 201 deletions

View file

@ -117,6 +117,16 @@ impl ZeroIDC {
}
}
fn is_running(&mut self) -> bool {
let local = Arc::clone(&self.inner);
if (*local.lock().unwrap()).running {
true
} else {
false
}
}
fn get_auth_info(&mut self, csrf_token: String, nonce: String) -> Option<AuthInfo> {
let (pkce_challenge, pkce_verifier) = PkceCodeChallenge::new_random_sha256();