From e72126a1213bc11f66ed0f50b581472e3f552396 Mon Sep 17 00:00:00 2001 From: etorreborre Date: Fri, 22 Nov 2024 18:36:44 +0100 Subject: [PATCH] fix(rust): remove the dev. authenticator endpoint --- .../rust/ockam/ockam_api/src/enroll/ockam_oidc_provider.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/implementations/rust/ockam/ockam_api/src/enroll/ockam_oidc_provider.rs b/implementations/rust/ockam/ockam_api/src/enroll/ockam_oidc_provider.rs index ae930ea7d38..717f572953d 100644 --- a/implementations/rust/ockam/ockam_api/src/enroll/ockam_oidc_provider.rs +++ b/implementations/rust/ockam/ockam_api/src/enroll/ockam_oidc_provider.rs @@ -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( @@ -28,8 +27,6 @@ pub fn auth0_client_id() -> Result { 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}"))) }