Skip to content

Commit

Permalink
Update jwt.go
Browse files Browse the repository at this point in the history
support for any type of JSON as request body to send to OPA (including arrays)
  • Loading branch information
acy-norman authored May 22, 2024
1 parent aabd920 commit 20621cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ type PayloadInput struct {
Headers map[string][]string `json:"headers"`
JWTHeader JwtHeader `json:"tokenHeader"`
JWTPayload map[string]interface{} `json:"tokenPayload"`
Body map[string]interface{} `json:"body,omitempty"`
Body interface{} `json:"body,omitempty"`
Form url.Values `json:"form,omitempty"`
}

Expand Down

0 comments on commit 20621cd

Please sign in to comment.