From eaeef9b9fe02089b9a3d433bca95e98d365f8969 Mon Sep 17 00:00:00 2001 From: broody Date: Sun, 25 Aug 2024 11:48:43 -0700 Subject: [PATCH] Update slot auth urls --- cli/src/command/auth/login.rs | 6 +++--- slot/src/session.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/src/command/auth/login.rs b/cli/src/command/auth/login.rs index b9c6991..ceb7665 100644 --- a/cli/src/command/auth/login.rs +++ b/cli/src/command/auth/login.rs @@ -37,7 +37,7 @@ impl LoginArgs { let url = vars::get_cartridge_keychain_url(); - let url = format!("{url}/slot/auth?callback_uri={callback_uri}"); + let url = format!("{url}/slot?callback_uri={callback_uri}"); browser::open(&url)?; server.start().await?; @@ -133,7 +133,7 @@ async fn handler( println!("You are now logged in!\n"); Ok(Redirect::permanent(&format!( - "{}/slot/auth/success", + "{}/success", vars::get_cartridge_keychain_url() ))) } @@ -141,7 +141,7 @@ async fn handler( error!("User denied consent. Try again."); Ok(Redirect::permanent(&format!( - "{}/slot/auth/failure", + "{}/failure", vars::get_cartridge_keychain_url() ))) } diff --git a/slot/src/session.rs b/slot/src/session.rs index f80b02a..df9b410 100644 --- a/slot/src/session.rs +++ b/slot/src/session.rs @@ -18,7 +18,7 @@ use crate::error::Error; use crate::utils::{self}; use crate::{browser, server::LocalServer, vars}; -const SESSION_CREATION_PATH: &str = "/slot/session"; +const SESSION_CREATION_PATH: &str = "/session"; const SESSION_FILE_BASE_NAME: &str = "session.json"; /// A policy defines what action can be performed by the session key.