Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(router): add `ApiKeyAuth` support for `upsert_connector_agnostic_mandate_config` (#4335)

Shankar Singh C963a10c877cf
diff --git a/crates/router/src/routes/routing.rs b/crates/router/src/routes/routing.rs
index 28d65f66a8..5d8330a05b 100644
--- a/crates/router/src/routes/routing.rs
+++ b/crates/router/src/routes/routing.rs
@@ -591,14 +591,11 @@ pub async fn upsert_connector_agnostic_mandate_config(
mandate_config,
))
},
- #[cfg(not(feature = "release"))]
auth::auth_type(
&auth::ApiKeyAuth,
&auth::JWTAuth(Permission::RoutingWrite),
req.headers(),
),
- #[cfg(feature = "release")]
- &auth::JWTAuth(Permission::RoutingWrite),
api_locking::LockAction::NotApplicable,
))
.await