From bcf1a5798068c1c7873ab7cda0b8da24fb5e93b3 Mon Sep 17 00:00:00 2001 From: prajjwalkumar17 Date: Mon, 13 Nov 2023 14:12:26 +0530 Subject: [PATCH] feat(euclid): added the auth --- crates/router/src/routes/routing.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/router/src/routes/routing.rs b/crates/router/src/routes/routing.rs index f2bd31576743..606111a88818 100644 --- a/crates/router/src/routes/routing.rs +++ b/crates/router/src/routes/routing.rs @@ -308,11 +308,11 @@ pub async fn routing_retrieve_default_config_for_profiles( state, &req, (), - |state, auth: oss_auth::AuthenticationData, _| { + |state, auth: auth::AuthenticationData, _| { routing::retrieve_default_routing_config_for_profiles(state, auth.merchant_account) }, #[cfg(not(feature = "release"))] - auth::auth_type(&oss_auth::ApiKeyAuth, &auth::JWTAuth, req.headers()), + auth::auth_type(&auth::ApiKeyAuth, &auth::JWTAuth, req.headers()), #[cfg(feature = "release")] &auth::JWTAuth, api_locking::LockAction::NotApplicable, @@ -337,7 +337,7 @@ pub async fn routing_update_default_config_for_profile( state, &req, routing_payload_wrapper, - |state, auth: oss_auth::AuthenticationData, wrapper| { + |state, auth: auth::AuthenticationData, wrapper| { routing::update_default_routing_config_for_profile( state, auth.merchant_account, @@ -346,7 +346,7 @@ pub async fn routing_update_default_config_for_profile( ) }, #[cfg(not(feature = "release"))] - auth::auth_type(&oss_auth::ApiKeyAuth, &auth::JWTAuth, req.headers()), + auth::auth_type(&auth::ApiKeyAuth, &auth::JWTAuth, req.headers()), #[cfg(feature = "release")] &auth::JWTAuth, api_locking::LockAction::NotApplicable,