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

Commit

Permalink
Merge pull request #1586 from openziti/fix.1584.nil.list.authpolicy
Browse files Browse the repository at this point in the history
fix nil list on auth policy rest model, fixes #1584
  • Loading branch information
andrewpmartinez authored Aug 16, 2023
2 parents 818fa10 + 99ebbbf commit 6123335
Showing 1 changed file with 4 additions and 0 deletions.
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

0 comments on commit 6123335

Please sign in to comment.