- 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:
2025-03-08 13:47:53 -05:00
parent b6f2d3f456
commit 8ba8fce20b
13 changed files with 151 additions and 79 deletions

View File

@@ -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 =