From 99ebbbf75c8ace67a53199d7876f41f23abd5d90 Mon Sep 17 00:00:00 2001 From: Andrew Martinez Date: Wed, 16 Aug 2023 09:56:53 -0400 Subject: [PATCH] fix nil list on auth policy rest model, fixes #1584 --- controller/internal/routes/auth_policy_api_model.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/internal/routes/auth_policy_api_model.go b/controller/internal/routes/auth_policy_api_model.go index 5e25118b2..9e9666b06 100644 --- a/controller/internal/routes/auth_policy_api_model.go +++ b/controller/internal/routes/auth_policy_api_model.go @@ -62,6 +62,10 @@ func MapAuthPolicyToRestModel(model *model.AuthPolicy) (*rest_model.AuthPolicyDe }, } + if ret.Primary.ExtJWT.AllowedSigners == nil { + ret.Primary.ExtJWT.AllowedSigners = []string{} + } + return ret, nil }