mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 02:57:02 +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)]
|
||||
#[serde(tag = "auth_type")]
|
||||
pub enum ConnectorAuthType {
|
||||
HeaderKey { api_key: String },
|
||||
BodyKey { api_key: String, key1: String },
|
||||
HeaderKey {
|
||||
api_key: String,
|
||||
},
|
||||
BodyKey {
|
||||
api_key: String,
|
||||
key1: String,
|
||||
},
|
||||
SignatureKey {
|
||||
api_key: String,
|
||||
key1: String,
|
||||
api_secret: String,
|
||||
},
|
||||
}
|
||||
|
||||
impl Default for ConnectorAuthType {
|
||||
|
||||
Reference in New Issue
Block a user