- update: schema now sets the skills column to prevent a crash
- update: frontend to only pass the session id - update: launcher to pass the session correctly - update: validate session response now returns the session id and user id to the requester - update: auth client based on session id instead of a jwt token
This commit is contained in:
@@ -140,7 +140,7 @@ pub(crate) async fn handle_login_req(
|
||||
debug!("{:?}", data);
|
||||
|
||||
let mut auth_client = auth_client.lock().await;
|
||||
match auth_client.login_token(&data.token.0).await {
|
||||
match auth_client.validate_session(&data.token.0).await {
|
||||
Ok(response) => {
|
||||
if response.valid == false {
|
||||
info!("Login failed: Invalid credentials");
|
||||
@@ -158,7 +158,7 @@ pub(crate) async fn handle_login_req(
|
||||
|
||||
if let Some(mut state) = connection_service.get_connection_mut(&connection_id) {
|
||||
state.user_id = Some(response.user_id.parse().unwrap());
|
||||
state.session_id = Some(response.session_id);
|
||||
state.session_id = Some(response.session_id.parse().unwrap());
|
||||
}
|
||||
|
||||
let consul_url =
|
||||
|
||||
Reference in New Issue
Block a user