Skip to content

Commit 73113e3

Browse files
committed
fix call to base64url
1 parent b075f6b commit 73113e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function getCodeChallengeMethod()
317317
*/
318318
protected function generateCodeChallenge($method)
319319
{
320-
$verifier = base64url(random_bytes(64));
320+
$verifier = $this->base64url(random_bytes(64));
321321
if ($method === 'plain') {
322322
return array(
323323
'verifier' => $verifier,
@@ -326,7 +326,7 @@ protected function generateCodeChallenge($method)
326326
} else {
327327
return array(
328328
'verifier' => $verifier,
329-
'challenge' => base64url(hash('sha256', $verifier, true)),
329+
'challenge' => $this->base64url(hash('sha256', $verifier, true)),
330330
);
331331
}
332332
}

0 commit comments

Comments
 (0)