Skip to content

Commit

Permalink
Fix compatibility with league/oauth2-server:^9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgarlag committed Nov 22, 2024
1 parent 1ae55cc commit 61d710f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ext-openssl": "*",
"doctrine/doctrine-bundle": "^2.8.0",
"doctrine/orm": "^2.14|^3.0",
"league/oauth2-server": "^9.0.1",
"league/oauth2-server": "^9.1",
"nyholm/psr7": "^1.4",
"psr/http-factory": "^1.0",
"symfony/event-dispatcher": "^5.4|^6.2|^7.0",
Expand Down
4 changes: 2 additions & 2 deletions tests/Integration/AuthorizationServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ public function testFailedAuthorizationWithExpiredCode(): void
$response = $this->handleTokenRequest($request);

// Response assertions.
$this->assertSame('invalid_request', $response['error']);
$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']);
$this->assertSame('invalid_grant', $response['error']);
$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']);
$this->assertSame('Authorization code has expired', $response['hint']);
}

Expand Down

0 comments on commit 61d710f

Please sign in to comment.