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

Commit

Permalink
fix nil list on auth policy rest model, fixes #1584
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpmartinez committed Aug 16, 2023
1 parent 818fa10 commit 99ebbbf
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 99ebbbf

Please sign in to comment.