Skip to content

Commit

Permalink
feat(service): no verify
Browse files Browse the repository at this point in the history
  • Loading branch information
arkavo-com committed Apr 28, 2024
1 parent 79d7ad0 commit 0393a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/kas/access/rewrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func generateHMACDigest(ctx context.Context, msg, key []byte) ([]byte, error) {
func verifySignedRequestToken(ctx context.Context, in *kaspb.RewrapRequest) (*RequestBody, error) {
var token jwt.Token
var err error
token, err = jwt.Parse([]byte(in.GetSignedRequestToken()), jwt.WithValidate(false))
token, err = jwt.Parse([]byte(in.GetSignedRequestToken()), jwt.WithValidate(false), jwt.WithVerify(false))
if err != nil {
slog.WarnContext(ctx, "unable to verify parse token", "err", err)
return nil, err401("could not parse token")
Expand Down

0 comments on commit 0393a6e

Please sign in to comment.