From e989e0da78baf77d16644099a0f648675160d58d Mon Sep 17 00:00:00 2001 From: Ruslan Talpa Date: Wed, 30 Jul 2025 17:17:51 +0300 Subject: [PATCH] [proxy] accept jwts when configured as rest_broker (#12777) ## Problem when compiled with rest_broker feature and is_rest_broker=true (but is_auth_broker=false) accept_jwts is set to false ## Summary of changes set the config with ``` accept_jwts: args.is_auth_broker || args.is_rest_broker ``` Co-authored-by: Ruslan Talpa --- proxy/src/binary/proxy.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proxy/src/binary/proxy.rs b/proxy/src/binary/proxy.rs index 29b0ad53f2..583cdc95bf 100644 --- a/proxy/src/binary/proxy.rs +++ b/proxy/src/binary/proxy.rs @@ -700,7 +700,10 @@ fn build_config(args: &ProxyCliArgs) -> anyhow::Result<&'static ProxyConfig> { ip_allowlist_check_enabled: !args.is_private_access_proxy, is_vpc_acccess_proxy: args.is_private_access_proxy, is_auth_broker: args.is_auth_broker, + #[cfg(not(feature = "rest_broker"))] accept_jwts: args.is_auth_broker, + #[cfg(feature = "rest_broker")] + accept_jwts: args.is_auth_broker || args.is_rest_broker, console_redirect_confirmation_timeout: args.webauth_confirmation_timeout, };