fix: challenge is '.token' and not '.id'

This commit is contained in:
beltram 2023-02-03 12:58:55 +01:00 committed by Herman Slatman
parent 83f6be1f58
commit 74ddad69dc
No known key found for this signature in database
GPG Key ID: F4D8A44EA0A75A4F

View File

@ -467,7 +467,7 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
"--client-id", "--client-id",
challengeValues.ClientID, challengeValues.ClientID,
"--challenge", "--challenge",
ch.ID, ch.Token,
"--leeway", "--leeway",
"360", "360",
"--max-expiry", "--max-expiry",
@ -500,15 +500,14 @@ func wireDPOP01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSO
err = cmd.Wait() err = cmd.Wait()
if err != nil { if err != nil {
log.Printf("access_token: %s, clientID: %s, cli: %s %s %s %s %s %s %s %s %s %s %s %s %s %s", log.Printf("access_token: %s, cli: %s %s %s %s %s %s %s %s %s %s %s %s %s %s",
wireChallengePayload.AccessToken, wireChallengePayload.AccessToken,
challengeValues.ClientID,
provisioner.GetOptions().GetDPOPOptions().GetValidationExecPath(), provisioner.GetOptions().GetDPOPOptions().GetValidationExecPath(),
"verify-access", "verify-access",
"--client-id", "--client-id",
challengeValues.ClientID, challengeValues.ClientID,
"--challenge", "--challenge",
ch.ID, ch.Token,
"--leeway", "--leeway",
"360", "360",
"--max-expiry", "--max-expiry",