From 95f4c10b9559d376362d7e71d5e8f31cae601b18 Mon Sep 17 00:00:00 2001 From: xiandan-erizo Date: Tue, 23 Jan 2024 15:25:41 +0800 Subject: [PATCH] LogoutPath nil pointer fix (#2485) Signed-off-by: xiandan Signed-off-by: sunkesi Co-authored-by: sunkesi --- internal/gatewayapi/securitypolicy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/gatewayapi/securitypolicy.go b/internal/gatewayapi/securitypolicy.go index 5c4a3e243a5..d3241ebbadd 100644 --- a/internal/gatewayapi/securitypolicy.go +++ b/internal/gatewayapi/securitypolicy.go @@ -470,6 +470,8 @@ func (t *Translator) buildOIDC( } redirectURL = *oidc.RedirectURL redirectPath = path + } + if oidc.LogoutPath != nil { logoutPath = *oidc.LogoutPath }