client jwk was there the whole time

This commit is contained in:
beltram 2023-07-28 15:59:18 +02:00 committed by Herman Slatman
parent ed2bce9a3c
commit 4d028f7813
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

View File

@ -463,10 +463,6 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
return NewErrorISE("missing provisioner")
}
jwk, ok = ctx.Value("jwk").(*jose.JSONWebKey)
if !ok || jwk == nil {
return storeError(ctx, db, ch, false, NewError(ErrorServerInternalType, "failed fetching the client JWK from context"))
}
kid, thumbprintErr := jwk.Thumbprint(crypto.SHA256)
if thumbprintErr != nil {
return storeError(ctx, db, ch, false, WrapError(ErrorServerInternalType, thumbprintErr, "failed to compute JWK thumbprint"))