diff --git a/composer.json b/composer.json index 3a5373a7..8f67a2ce 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/composer.lock b/composer.lock index 65a4a9a2..2091818f 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "" }, diff --git a/tests/Unit/Endpoint/Web/OAuthTokenEndpointTest.php b/tests/Unit/Endpoint/Web/OAuthTokenEndpointTest.php new file mode 100644 index 00000000..a620f7fc --- /dev/null +++ b/tests/Unit/Endpoint/Web/OAuthTokenEndpointTest.php @@ -0,0 +1,26 @@ +postJson('/oauth/token', [ + 'grant_type' => 'client_credentials', + 'client_id' => 'audit', + 'client_secret' => 'secret', + ]); + + // Assert + $response->assertStatus(401); + $response->assertJsonPath('error', 'invalid_client'); + } +}