rogerberaldi opened a new pull request, #1146: URL: https://github.com/apache/guacamole-client/pull/1146
**JIRA Issue:** https://issues.apache.org/jira/browse/GUACAMOLE-2199 **Overview:** This PR enables support for stateless load balancing architectures (e.g., Kubernetes Ingress, Zero-Trust Gateways) where sticky sessions are unavailable or unreliable. It introduces a configurable property that allows an upstream proxy to explicitly dictate the client's Base URL via an HTTP header. **Changes:** * **Configuration:** Introduced `auth-base-url-header` in `guacamole.properties`. * **API:** Updated `APIAuthenticationResult` to include a `baseUrl` field. * **Compatibility:** Implemented constructor chaining in `APIAuthenticationResult` to ensure binary compatibility with existing extensions. * **Logic:** Updated `TokenRESTService` to inspect the configured header and inject the URL (replacing `{TOKEN}` placeholder) into the auth response. **Verification:** * Added `APIAuthenticationResultTest` to verify backward compatibility of constructors and correct injection of the `baseUrl` field. * `mvn test` passed. * Verified that default behavior (when property is unset) remains unchanged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
