refactor: separate request auth channel from route kind

Extract request_auth_channel as a distinct routing dimension to distinguish
between api_key and bearer_like authentication methods. This improves routing
clarity by decoupling authentication mechanism from route classification.
This commit is contained in:
fawney19
2026-05-02 21:23:33 +08:00
parent 47ee8b9c13
commit 3a770306cc
16 changed files with 337 additions and 58 deletions

View File

@@ -74,6 +74,12 @@ pub(crate) fn build_internal_gateway_resolve_payload(
if let Some(route_kind) = decision.route_kind {
payload.insert("route_kind".to_string(), json!(route_kind));
}
if let Some(request_auth_channel) = decision.request_auth_channel {
payload.insert(
"request_auth_channel".to_string(),
json!(request_auth_channel),
);
}
if let Some(signature) = decision.auth_endpoint_signature {
payload.insert("auth_endpoint_signature".to_string(), json!(signature));
}