Preflight Checklist
Describe your problem
Follow up for: zitadel/zitadel#11924
The error returned after the signature verification fails is not propagated correctly to the calling function.
|
signedPayload, err := set.VerifySignature(ctx, jws) |
|
if err != nil { |
|
return fmt.Errorf("%w (%v)", ErrSignatureInvalid, err) |
|
} |
Describe your ideal solution
The error is wrapped (using the %w verb) instead of embedding (with the %v verb) the error message before returning to the caller.
Version
No response
Environment
ZITADEL Cloud
Additional Context
No response
Preflight Checklist
Describe your problem
Follow up for: zitadel/zitadel#11924
The error returned after the signature verification fails is not propagated correctly to the calling function.
oidc/pkg/oidc/verifier.go
Lines 193 to 196 in cab66d5
Describe your ideal solution
The error is wrapped (using the
%wverb) instead of embedding (with the%vverb) the error message before returning to the caller.Version
No response
Environment
ZITADEL Cloud
Additional Context
No response