mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
feat(router): add support for Signature Key ConnectorAuthType (#85)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -213,8 +213,18 @@ pub struct ResponseRouterData<Flow, R, Request, Response> {
|
|||||||
#[derive(Debug, Clone, serde::Deserialize)]
|
#[derive(Debug, Clone, serde::Deserialize)]
|
||||||
#[serde(tag = "auth_type")]
|
#[serde(tag = "auth_type")]
|
||||||
pub enum ConnectorAuthType {
|
pub enum ConnectorAuthType {
|
||||||
HeaderKey { api_key: String },
|
HeaderKey {
|
||||||
BodyKey { api_key: String, key1: String },
|
api_key: String,
|
||||||
|
},
|
||||||
|
BodyKey {
|
||||||
|
api_key: String,
|
||||||
|
key1: String,
|
||||||
|
},
|
||||||
|
SignatureKey {
|
||||||
|
api_key: String,
|
||||||
|
key1: String,
|
||||||
|
api_secret: String,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for ConnectorAuthType {
|
impl Default for ConnectorAuthType {
|
||||||
|
|||||||
Reference in New Issue
Block a user