From 4f4c0fa9e7687ad6c811b4631ad2f1b289c66dfd Mon Sep 17 00:00:00 2001 From: StefanT123 Date: Thu, 15 Jun 2023 15:11:53 +0200 Subject: [PATCH] add missing param to setAuthorizationCode Since id_token was defaulting to null, you weren't passing it in the call of setAuthorizationCode, but then you've added 2 new params, and you forgot to pass id_token before them. --- 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; }