Skip to content

Commit f4d055b

Browse files
committed
update to array instead of object access
1 parent 29651ea commit f4d055b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utils/DPop.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public function getDpopKey($dpop, $request) {
4949
$jwk = $dpop->headers()->get("jwk");
5050
//error_log(print_r($jwk, true));
5151

52-
return $jwk->kid;
52+
return $jwk['kid'];
5353
}
5454

5555
private function validateJwtDpop($jwt, $dpopKey) {
5656
$jwtConfig = $configuration = Configuration::forUnsecuredSigner();
5757
$jwt = $jwtConfig->parser()->parse($jwt);
5858
$cnf = $jwt->claims()->get("cnf");
5959

60-
if ($cnf->jkt == $dpopKey) {
60+
if ($cnf['jkt'] == $dpopKey) {
6161
//error_log("dpopKey matches");
6262
return true;
6363
}

0 commit comments

Comments
 (0)