Skip to content

Commit

Permalink
fix(rust): remove the dev. authenticator endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
etorreborre committed Nov 22, 2024
1 parent 4b88960 commit e72126a
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std::time::Duration;
use url::Url;

const PRODUCTION_AUTHENTICATOR_ENDPOINT: &str = "https://account.ockam.io";
const DEV_AUTHENTICATOR_ENDPOINT: &str = "https://dev-w5hdnpc2.us.auth0.com";

pub fn authenticator_endpoint() -> String {
get_env_with_default(
Expand All @@ -28,8 +27,6 @@ pub fn auth0_client_id() -> Result<String> {
let endpoint = authenticator_endpoint();
if endpoint == PRODUCTION_AUTHENTICATOR_ENDPOINT {
Ok("c1SAhEjrJAqEk6ArWjGjuWX11BD2gK8X".to_string())
} else if endpoint == DEV_AUTHENTICATOR_ENDPOINT {
Ok("sGyXBwQfU6fjfW1gopphdV9vCLec060b".to_string())
} else {
Err(Error::new(Origin::Api, Kind::NotFound, format!("The OCKAM_AUTH0_CLIENT_ID variable must be defined when using the endpoint {endpoint}")))
}
Expand Down

0 comments on commit e72126a

Please sign in to comment.