feat(router): add support for Signature Key ConnectorAuthType (#85)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
Sahebjot singh
2022-12-08 14:41:28 +05:30
committed by GitHub
parent 2ea1fd6c9c
commit 0f2afe8c62

View File

@ -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 {