mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-03 21:37:41 +08:00 
			
		
		
		
	fix(router): add validation for all the connector auth type (#1748)
This commit is contained in:
		@ -73,6 +73,13 @@ impl ConnectorCommon for Stax {
 | 
			
		||||
    fn id(&self) -> &'static str {
 | 
			
		||||
        "stax"
 | 
			
		||||
    }
 | 
			
		||||
    fn validate_auth_type(
 | 
			
		||||
        &self,
 | 
			
		||||
        val: &types::ConnectorAuthType,
 | 
			
		||||
    ) -> Result<(), error_stack::Report<errors::ConnectorError>> {
 | 
			
		||||
        stax::StaxAuthType::try_from(val)?;
 | 
			
		||||
        Ok(())
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    fn common_get_content_type(&self) -> &'static str {
 | 
			
		||||
        "application/json"
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user