[haproxy] Redirect openid based on payload

When checking if the server has openid capabilities we are checking for
openid_identifier, let's redirect that to openid backend as well.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
Michal Konecny
2025-10-01 10:02:12 +02:00
parent aa5e1674c0
commit 3df75c98bb

View File

@@ -172,12 +172,15 @@ frontend ipsilon-frontend
bind 0.0.0.0:10020
{% if env == "staging" %}
option http-buffer-request
# Define ipsilon OpenID only instance
acl path_openidc path_beg /openidc
acl path_openid path_beg /openid
acl is_openid_payload req.body_payload(0,0) -m sub 'openid_identifier'
use_backend ipsilon-backend if path_openidc
use_backend ipsilon-backend-openid if path_openid
use_backend ipsilon-backend-openid if is_openid_payload
{% endif %}
default_backend ipsilon-backend