feat(authentication): Initial commit to modular authentication create (#8085)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sahkal Poddar
2025-06-24 17:03:24 +05:30
committed by GitHub
parent bc767b9131
commit 2ea5d81d53
45 changed files with 948 additions and 132 deletions

View File

@ -66,6 +66,7 @@ Never share your secret api keys. Keep them guarded and secure.
(name = "payment link", description = "Create payment link"),
(name = "Routing", description = "Create and manage routing configurations"),
(name = "Event", description = "Manage events"),
(name = "Authentication", description = "Create and manage authentication")
),
// The paths will be displayed in the same order as they are registered here
paths(
@ -209,6 +210,9 @@ Never share your secret api keys. Keep them guarded and secure.
// Routes for 3DS Decision Rule
routes::three_ds_decision_rule::three_ds_decision_rule_execute,
// Routes for authentication
routes::authentication::authentication_create,
),
components(schemas(
common_utils::types::MinorUnit,
@ -788,6 +792,9 @@ Never share your secret api keys. Keep them guarded and secure.
euclid::frontend::dir::enums::CustomerDevicePlatform,
euclid::frontend::dir::enums::CustomerDeviceType,
euclid::frontend::dir::enums::CustomerDeviceDisplaySize,
api_models::authentication::AuthenticationCreateRequest,
api_models::authentication::AuthenticationResponse,
api_models::authentication::AcquirerDetails,
)),
modifiers(&SecurityAddon)
)]

View File

@ -1,6 +1,7 @@
#![allow(unused)]
pub mod api_keys;
pub mod authentication;
pub mod blocklist;
pub mod customers;
pub mod disputes;

View File

@ -0,0 +1,17 @@
/// Authentication - Create
///
/// Create a new authentication for accessing our APIs from your servers.
///
#[utoipa::path(
post,
path = "/authentication",
request_body = AuthenticationCreateRequest,
responses(
(status = 200, description = "Authentication created", body = AuthenticationResponse),
(status = 400, description = "Invalid data")
),
tag = "Authentication",
operation_id = "Create an Authentication",
security(("api_key" = []))
)]
pub async fn authentication_create() {}