mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
client jwk was there the whole time
This commit is contained in:
parent
ed2bce9a3c
commit
4d028f7813
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user