Skip to content

Commit 61d710f

Browse files
committed
Fix compatibility with league/oauth2-server:^9.1
See thephpleague/oauth2-server#1433
1 parent 1ae55cc commit 61d710f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"ext-openssl": "*",
2121
"doctrine/doctrine-bundle": "^2.8.0",
2222
"doctrine/orm": "^2.14|^3.0",
23-
"league/oauth2-server": "^9.0.1",
23+
"league/oauth2-server": "^9.1",
2424
"nyholm/psr7": "^1.4",
2525
"psr/http-factory": "^1.0",
2626
"symfony/event-dispatcher": "^5.4|^6.2|^7.0",

tests/Integration/AuthorizationServerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -682,8 +682,8 @@ public function testFailedAuthorizationWithExpiredCode(): void
682682
$response = $this->handleTokenRequest($request);
683683

684684
// Response assertions.
685-
$this->assertSame('invalid_request', $response['error']);
686-
$this->assertSame('The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed.', $response['error_description']);
685+
$this->assertSame('invalid_grant', $response['error']);
686+
$this->assertSame('The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client.', $response['error_description']);
687687
$this->assertSame('Authorization code has expired', $response['hint']);
688688
}
689689

0 commit comments

Comments
 (0)