add unit tests to oidc verifier

This commit is contained in:
Tim Möhlmann 2023-03-20 18:07:38 +02:00
parent 9c7bcae539
commit d877539236
4 changed files with 515 additions and 8 deletions

View file

@ -17,7 +17,7 @@ type KeySet struct{}
// VerifySignature implments op.KeySet.
func (KeySet) VerifySignature(ctx context.Context, jws *jose.JSONWebSignature) (payload []byte, err error) {
if ctx.Err() != nil {
if err = ctx.Err(); err != nil {
return nil, err
}