Update laravel/passport to v13.10.0

This commit is contained in:
Constantin Graf
2026-11-03 16:51:20 +01:00
committed by Constantin Graf
parent 0e1ed2e114
commit ea07027008
3 changed files with 36 additions and 9 deletions

View File

@@ -21,7 +21,7 @@
"laravel/fortify": "^1.37",
"laravel/framework": "^13.0",
"laravel/octane": "^2.3",
"laravel/passport": "^13.0.5",
"laravel/passport": "^13.10.0",
"laravel/tinker": "^3.0",
"league/csv": "^9.16.0",
"league/flysystem-aws-s3-v3": "^3.0",

17
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "872c4458fb79e6e493b1c704973ca31a",
"content-hash": "0c9c08e67c89ce337c6d8b6bd632ac89",
"packages": [
{
"name": "anourvalar/eloquent-serialize",
@@ -4671,16 +4671,16 @@
},
{
"name": "laravel/passport",
"version": "v13.8.0",
"version": "v13.10.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/passport.git",
"reference": "63118b38b508d5605a0e3b5468d447bf540ea7d2"
"reference": "f5f5e9f64559dd52339daa0d6102cb1c30e4a0d7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/passport/zipball/63118b38b508d5605a0e3b5468d447bf540ea7d2",
"reference": "63118b38b508d5605a0e3b5468d447bf540ea7d2",
"url": "https://api.github.com/repos/laravel/passport/zipball/f5f5e9f64559dd52339daa0d6102cb1c30e4a0d7",
"reference": "f5f5e9f64559dd52339daa0d6102cb1c30e4a0d7",
"shasum": ""
},
"require": {
@@ -4705,6 +4705,7 @@
"symfony/psr-http-message-bridge": "^7.1|^8.0"
},
"require-dev": {
"jasonmccreary/double": "^1.0",
"orchestra/testbench": "^9.15|^10.8|^11.0",
"phpstan/phpstan": "^2.0"
},
@@ -4742,7 +4743,7 @@
"issues": "https://github.com/laravel/passport/issues",
"source": "https://github.com/laravel/passport"
},
"time": "2026-08-28T14:24:54+00:00"
"time": "2026-10-08T20:13:55+00:00"
},
{
"name": "laravel/prompts",
@@ -14084,12 +14085,12 @@
"version": "v5.7.0",
"source": {
"type": "git",
"url": "https://github.com/vlucas/phpdotenv.git",
"url": "https://github.com/phpdotenv/phpdotenv.git",
"reference": "301c07936b16d88628b126b01d082ba153cf4c40"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/301c07936b16d88628b126b01d082ba153cf4c40",
"url": "https://api.github.com/repos/phpdotenv/phpdotenv/zipball/301c07936b16d88628b126b01d082ba153cf4c40",
"reference": "301c07936b16d88628b126b01d082ba153cf4c40",
"shasum": ""
},

View File

@@ -0,0 +1,26 @@
<?php
declare(strict_types=1);
namespace Tests\Unit\Endpoint\Web;
use App\Models\Passport\Client;
use PHPUnit\Framework\Attributes\CoversClass;
#[CoversClass(Client::class)]
class OAuthTokenEndpointTest extends EndpointTestAbstract
{
public function test_token_endpoint_returns_invalid_client_for_client_id_that_is_not_a_uuid(): void
{
// Act
$response = $this->postJson('/oauth/token', [
'grant_type' => 'client_credentials',
'client_id' => 'audit',
'client_secret' => 'secret',
]);
// Assert
$response->assertStatus(401);
$response->assertJsonPath('error', 'invalid_client');
}
}