Add switch for endpoint auth types in action handler

Introduced a switch statement to handle various endpoint authentication types in InvokeRecActionCommandHandler. Cases for common auth methods have been added as placeholders, preparing the codebase for future implementation of specific authentication logic.
This commit is contained in:
2025-12-12 10:50:49 +01:00
parent fd7744e94e
commit 0583d07f26

View File

@@ -50,6 +50,30 @@ public class InvokeRecActionCommandHandler(
foreach (var header in action.Headers)
httpReq.Headers.Add(header.Key, header.Value);
switch (action.EndpointAuthType)
{
case "No Auth":
break;
case "API Key":
break;
case "Bearer Token":
break;
case "JWT Bearer":
break;
case "Basic Auth":
break;
case "Digest Auth":
break;
case "OAuth 1.0":
break;
case "OAuth 2.0":
break;
case "AWS Signature":
break;
case "NTLM Auth":
break;
}
using var response = await http.SendAsync(httpReq, cancel);
var resBody = await response.Content.ReadAsStringAsync(cancel);
var resHeaders = response.Headers.ToDictionary();