File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
use League \OAuth2 \Server \Entities \ClientEntityInterface ;
13
13
use League \OAuth2 \Server \Entities \ScopeEntityInterface ;
14
14
use League \OAuth2 \Server \Entities \UserEntityInterface ;
15
+ use League \OAuth2 \Server \Entities \AuthCodeEntityInterface ;
15
16
use League \OAuth2 \Server \Exception \OAuthServerException ;
16
17
use League \OAuth2 \Server \Repositories \AuthCodeRepositoryInterface ;
17
18
use League \OAuth2 \Server \Repositories \RefreshTokenRepositoryInterface ;
@@ -341,7 +342,7 @@ public function completeAuthorizationRequest(AuthorizationRequest $authorization
341
342
'code_challenge_method ' => $ authorizationRequest ->getCodeChallengeMethod (),
342
343
];
343
344
344
- $ payload = array_merge ($ this ->getExtraAuthCodeParams ($ authorizationRequest ), $ payload );
345
+ $ payload = array_merge ($ this ->getExtraAuthCodeParams ($ authorizationRequest, $ authCode ), $ payload );
345
346
346
347
$ response = new RedirectResponse ();
347
348
$ response ->setRedirectUri (
@@ -378,10 +379,11 @@ public function completeAuthorizationRequest(AuthorizationRequest $authorization
378
379
* for when you are issuing the token at the token endpoint
379
380
*
380
381
* @param AuthorizationRequest $authorizationRequest
382
+ * @param AuthCodeEntityInterface $authCode
381
383
*
382
384
* @return array
383
385
*/
384
- protected function getExtraAuthCodeParams (AuthorizationRequest $ authorizationRequest )
386
+ protected function getExtraAuthCodeParams (AuthorizationRequest $ authorizationRequest, AuthCodeEntityInterface $ authCode )
385
387
{
386
388
return [];
387
389
}
You can’t perform that action at this time.
0 commit comments