Command: grep -r "AdminApiAuthWithMerchantIdFromRoute"…
Download ▾
Command: grep -r "AdminApiAuthWithMerchantIdFromRoute" /workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/ --include="*.rs" -A 3 -B 3
Output: /workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs- }
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-}
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[derive(Debug)]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs:pub struct AdminApiAuthWithMerchantIdFromRoute(pub id_type::MerchantId);
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[cfg(feature = "v1")]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[async_trait]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs:impl AuthenticateAndFetch<AuthenticationData, A> for AdminApiAuthWithMerchantIdFromRoute
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-where
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs- A: SessionStateInfo + Sync,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-{
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[cfg(feature = "v2")]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[async_trait]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs:impl AuthenticateAndFetch<AuthenticationData, A> for AdminApiAuthWithMerchantIdFromRoute
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-where
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs- A: SessionStateInfo + Sync,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-{
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[cfg(feature = "v2")]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-#[async_trait]
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-impl AuthenticateAndFetch<AuthenticationDataWithoutProfile, A>
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs: for AdminApiAuthWithMerchantIdFromRoute
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-where
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs- A: SessionStateInfo + Sync,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/services/authentication.rs-{
Assistant<is_displaying_contents>
true
</is_displaying_contents>
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- &req,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- json_payload.into_inner(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- |state, auth, req, _| recon::recon_merchant_account_update(state, auth, req),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs: &authentication::AdminApiAuthWithMerchantIdFromRoute(merchant_id),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- api_locking::LockAction::NotApplicable,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- ))
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/recon.rs- .await
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- )
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- },
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- merchant_id: merchant_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/admin.rs- required_permission: Permission::ProfileConnectorWrite,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- api_keys::create_api_key(state, payload, auth_data.key_store).await
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- },
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- merchant_id: merchant_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/api_keys.rs- required_permission: Permission::MerchantApiKeyWrite,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- create_profile(state, req, auth_data.merchant_account, auth_data.key_store)
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- },
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- required_permission: permissions::Permission::MerchantAccountWrite,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- profile_id,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- |state, auth_data, profile_id, _| retrieve_profile(state, profile_id, auth_data.key_store),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id: merchant_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- required_permission: permissions::Permission::ProfileAccountRead,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- json_payload.into_inner(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- |state, auth_data, req, _| update_profile(state, &profile_id, auth_data.key_store, req),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- &auth::JWTAuthMerchantAndProfileFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id: merchant_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- profile_id: profile_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id.clone(),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- |state, _auth, merchant_id, _| list_profile(state, merchant_id, None),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- required_permission: permissions::Permission::MerchantAccountRead,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- list_profile(state, merchant_id, None)
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- },
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- auth::auth_type(
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs: &auth::AdminApiAuthWithMerchantIdFromRoute(merchant_id.clone()),
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- &auth::JWTAuthMerchantFromRoute {
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- merchant_id,
/workspace/archit/trace_generation/repos/hyperswitch_pool_9/crates/router/src/routes/profiles.rs- required_permission: permissions::Permission::MerchantAccountRead,