Skip to content

Commit

Permalink
Update slot auth urls (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
broody authored Aug 27, 2024
1 parent 6810390 commit b6143de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cli/src/command/auth/login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down Expand Up @@ -133,15 +133,15 @@ async fn handler(
println!("You are now logged in!\n");

Ok(Redirect::permanent(&format!(
"{}/slot/auth/success",
"{}/success",
vars::get_cartridge_keychain_url()
)))
}
None => {
error!("User denied consent. Try again.");

Ok(Redirect::permanent(&format!(
"{}/slot/auth/failure",
"{}/failure",
vars::get_cartridge_keychain_url()
)))
}
Expand Down
2 changes: 1 addition & 1 deletion slot/src/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b6143de

Please sign in to comment.