Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

fix nil list on auth policy rest model, fixes #1584 #1586

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions controller/internal/routes/auth_policy_api_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down