Support starting session in mock server

This commit is contained in:
Jeremy Soller 2023-10-04 11:13:43 -06:00
parent 6b1aded756
commit 2eb85f8077
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -36,11 +36,12 @@ async fn main() {
println!("{:?}", request);
let response = match request {
Request::CreateSession { username } => Response::AuthMessage {
Request::CreateSession { .. } => Response::AuthMessage {
auth_message_type: AuthMessageType::Secret,
auth_message: "Password:".to_string(),
},
Request::PostAuthMessageResponse { response } => Response::Success,
Request::PostAuthMessageResponse { .. } => Response::Success,
Request::StartSession { .. } => Response::Success,
_ => {
println!("unhandled request");
break;