mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
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:
@ -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)
|
||||
)]
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#![allow(unused)]
|
||||
|
||||
pub mod api_keys;
|
||||
pub mod authentication;
|
||||
pub mod blocklist;
|
||||
pub mod customers;
|
||||
pub mod disputes;
|
||||
|
||||
17
crates/openapi/src/routes/authentication.rs
Normal file
17
crates/openapi/src/routes/authentication.rs
Normal 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() {}
|
||||
Reference in New Issue
Block a user