From 096db2c86a7d67a2ba45e72be7d208c342694542 Mon Sep 17 00:00:00 2001 From: StefanT123 Date: Fri, 7 Jul 2023 19:53:54 +0200 Subject: [PATCH] fix: add missing param to setAuthorizationCode (#1048) --- src/OAuth2/ResponseType/AuthorizationCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OAuth2/ResponseType/AuthorizationCode.php b/src/OAuth2/ResponseType/AuthorizationCode.php index 7b33f7ce..12a9f8c3 100644 --- a/src/OAuth2/ResponseType/AuthorizationCode.php +++ b/src/OAuth2/ResponseType/AuthorizationCode.php @@ -56,7 +56,7 @@ public function getAuthorizeResponse($params, $user_id = null) public function createAuthorizationCode($client_id, $user_id, $redirect_uri, $scope = null, $code_challenge = null, $code_challenge_method = null) { $code = $this->generateAuthorizationCode(); - $this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, $code_challenge, $code_challenge_method); + $this->storage->setAuthorizationCode($code, $client_id, $user_id, $redirect_uri, time() + $this->config['auth_code_lifetime'], $scope, null, $code_challenge, $code_challenge_method); return $code; }