Back to passport 12 for the time being.

This commit is contained in:
James Cole
2025-05-25 06:24:01 +02:00
parent e9844dc2f5
commit 19e5fd6277
4 changed files with 57 additions and 184 deletions

View File

@@ -158,7 +158,7 @@ class ProfileController extends Controller
/** @var ClientRepository $repository */ /** @var ClientRepository $repository */
$repository = app(ClientRepository::class); $repository = app(ClientRepository::class);
$name = sprintf('%s Personal Access Grant Client',config('app.name')); $name = sprintf('%s Personal Access Grant Client',config('app.name'));
$repository->createPersonalAccessGrantClient($name, config('app.name').' Personal Access Grant Client', 'http://localhost'); $repository->createPersonalAccessClient(null, $name, 'http://localhost');
} }
$accessToken = app('preferences')->get('access_token'); $accessToken = app('preferences')->get('access_token');

View File

@@ -41,7 +41,7 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void public function boot(): void
{ {
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
Passport::$clientUuids = false; // Passport::$clientUuids = false;
Response::macro('api', function (array $value) { Response::macro('api', function (array $value) {
$headers = [ $headers = [
'Cache-Control' => 'no-store', 'Cache-Control' => 'no-store',

View File

@@ -89,7 +89,7 @@
"jc5/recovery": "^2", "jc5/recovery": "^2",
"laravel-notification-channels/pushover": "^4.0", "laravel-notification-channels/pushover": "^4.0",
"laravel/framework": "^12", "laravel/framework": "^12",
"laravel/passport": "^13.0", "laravel/passport": "^12.0",
"laravel/sanctum": "^4.1", "laravel/sanctum": "^4.1",
"laravel/slack-notification-channel": "^3.3", "laravel/slack-notification-channel": "^3.3",
"laravel/ui": "^4.2", "laravel/ui": "^4.2",

235
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "6f1ffe4fde89e06daca72732fa904917", "content-hash": "b630645d62adf0b4c2a9a16ccfc7a3cc",
"packages": [ "packages": [
{ {
"name": "bacon/bacon-qr-code", "name": "bacon/bacon-qr-code",
@@ -2094,44 +2094,43 @@
}, },
{ {
"name": "laravel/passport", "name": "laravel/passport",
"version": "v13.0.1", "version": "v12.4.2",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/laravel/passport.git", "url": "https://github.com/laravel/passport.git",
"reference": "d96323a1c3699efe51ca477c3dd8fdd6500d7997" "reference": "65a885607b62d361aedaeb10a946bc6b5a954262"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/laravel/passport/zipball/d96323a1c3699efe51ca477c3dd8fdd6500d7997", "url": "https://api.github.com/repos/laravel/passport/zipball/65a885607b62d361aedaeb10a946bc6b5a954262",
"reference": "d96323a1c3699efe51ca477c3dd8fdd6500d7997", "reference": "65a885607b62d361aedaeb10a946bc6b5a954262",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"ext-openssl": "*",
"firebase/php-jwt": "^6.4", "firebase/php-jwt": "^6.4",
"illuminate/auth": "^11.35|^12.0", "illuminate/auth": "^9.21|^10.0|^11.0|^12.0",
"illuminate/console": "^11.35|^12.0", "illuminate/console": "^9.21|^10.0|^11.0|^12.0",
"illuminate/container": "^11.35|^12.0", "illuminate/container": "^9.21|^10.0|^11.0|^12.0",
"illuminate/contracts": "^11.35|^12.0", "illuminate/contracts": "^9.21|^10.0|^11.0|^12.0",
"illuminate/cookie": "^11.35|^12.0", "illuminate/cookie": "^9.21|^10.0|^11.0|^12.0",
"illuminate/database": "^11.35|^12.0", "illuminate/database": "^9.21|^10.0|^11.0|^12.0",
"illuminate/encryption": "^11.35|^12.0", "illuminate/encryption": "^9.21|^10.0|^11.0|^12.0",
"illuminate/http": "^11.35|^12.0", "illuminate/http": "^9.21|^10.0|^11.0|^12.0",
"illuminate/support": "^11.35|^12.0", "illuminate/support": "^9.21|^10.0|^11.0|^12.0",
"league/oauth2-server": "^9.2", "lcobucci/jwt": "^4.3|^5.0",
"php": "^8.2", "league/oauth2-server": "^8.5.3",
"php-http/discovery": "^1.20", "nyholm/psr7": "^1.5",
"phpseclib/phpseclib": "^3.0", "php": "^8.0",
"psr/http-factory-implementation": "*", "phpseclib/phpseclib": "^2.0|^3.0",
"symfony/console": "^7.1", "symfony/console": "^6.0|^7.0",
"symfony/psr-http-message-bridge": "^7.1" "symfony/psr-http-message-bridge": "^2.1|^6.0|^7.0"
}, },
"require-dev": { "require-dev": {
"mockery/mockery": "^1.6", "mockery/mockery": "^1.0",
"orchestra/testbench": "^9.9|^10.0", "orchestra/testbench": "^7.35|^8.14|^9.0|^10.0",
"phpstan/phpstan": "^2.0", "phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^11.5|^12.0" "phpunit/phpunit": "^9.3|^10.5|^11.5"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@@ -2167,7 +2166,7 @@
"issues": "https://github.com/laravel/passport/issues", "issues": "https://github.com/laravel/passport/issues",
"source": "https://github.com/laravel/passport" "source": "https://github.com/laravel/passport"
}, },
"time": "2025-05-07T17:16:06+00:00" "time": "2025-02-12T16:11:33+00:00"
}, },
{ {
"name": "laravel/prompts", "name": "laravel/prompts",
@@ -2900,34 +2899,29 @@
}, },
{ {
"name": "league/event", "name": "league/event",
"version": "3.0.3", "version": "2.3.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/event.git", "url": "https://github.com/thephpleague/event.git",
"reference": "ec38ff7ea10cad7d99a79ac937fbcffb9334c210" "reference": "062ebb450efbe9a09bc2478e89b7c933875b0935"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/event/zipball/ec38ff7ea10cad7d99a79ac937fbcffb9334c210", "url": "https://api.github.com/repos/thephpleague/event/zipball/062ebb450efbe9a09bc2478e89b7c933875b0935",
"reference": "ec38ff7ea10cad7d99a79ac937fbcffb9334c210", "reference": "062ebb450efbe9a09bc2478e89b7c933875b0935",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2.0", "php": ">=7.1.0"
"psr/event-dispatcher": "^1.0"
},
"provide": {
"psr/event-dispatcher-implementation": "1.0"
}, },
"require-dev": { "require-dev": {
"friendsofphp/php-cs-fixer": "^2.16", "henrikbjorn/phpspec-code-coverage": "~1.0.1",
"phpstan/phpstan": "^0.12.45", "phpspec/phpspec": "^2.2"
"phpunit/phpunit": "^8.5"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.0-dev" "dev-master": "2.2-dev"
} }
}, },
"autoload": { "autoload": {
@@ -2953,9 +2947,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/thephpleague/event/issues", "issues": "https://github.com/thephpleague/event/issues",
"source": "https://github.com/thephpleague/event/tree/3.0.3" "source": "https://github.com/thephpleague/event/tree/2.3.0"
}, },
"time": "2024-09-04T16:06:53+00:00" "time": "2025-03-14T19:51:10+00:00"
}, },
{ {
"name": "league/flysystem", "name": "league/flysystem",
@@ -3217,46 +3211,38 @@
}, },
{ {
"name": "league/oauth2-server", "name": "league/oauth2-server",
"version": "9.2.0", "version": "8.5.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/oauth2-server.git", "url": "https://github.com/thephpleague/oauth2-server.git",
"reference": "00323013403e1a1e0f424affafca56c28b60c22c" "reference": "cc8778350f905667e796b3c2364a9d3bd7a73518"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/oauth2-server/zipball/00323013403e1a1e0f424affafca56c28b60c22c", "url": "https://api.github.com/repos/thephpleague/oauth2-server/zipball/cc8778350f905667e796b3c2364a9d3bd7a73518",
"reference": "00323013403e1a1e0f424affafca56c28b60c22c", "reference": "cc8778350f905667e796b3c2364a9d3bd7a73518",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"defuse/php-encryption": "^2.4", "defuse/php-encryption": "^2.3",
"ext-json": "*",
"ext-openssl": "*", "ext-openssl": "*",
"lcobucci/clock": "^2.3 || ^3.0", "lcobucci/clock": "^2.2 || ^3.0",
"lcobucci/jwt": "^5.0", "lcobucci/jwt": "^4.3 || ^5.0",
"league/event": "^3.0", "league/event": "^2.2",
"league/uri": "^7.0", "league/uri": "^6.7 || ^7.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "php": "^8.0",
"psr/http-message": "^2.0", "psr/http-message": "^1.0.1 || ^2.0"
"psr/http-server-middleware": "^1.0"
}, },
"replace": { "replace": {
"league/oauth2server": "*", "league/oauth2server": "*",
"lncd/oauth2": "*" "lncd/oauth2": "*"
}, },
"require-dev": { "require-dev": {
"laminas/laminas-diactoros": "^3.5", "laminas/laminas-diactoros": "^3.0.0",
"php-parallel-lint/php-parallel-lint": "^1.3.2", "phpstan/phpstan": "^0.12.57",
"phpstan/extension-installer": "^1.3.1", "phpstan/phpstan-phpunit": "^0.12.16",
"phpstan/phpstan": "^1.12", "phpunit/phpunit": "^9.6.6",
"phpstan/phpstan-deprecation-rules": "^1.1.4", "roave/security-advisories": "dev-master"
"phpstan/phpstan-phpunit": "^1.3.15",
"phpstan/phpstan-strict-rules": "^1.5.2",
"phpunit/phpunit": "^9.6.21",
"roave/security-advisories": "dev-master",
"slevomat/coding-standard": "^8.14.1",
"squizlabs/php_codesniffer": "^3.8"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -3301,7 +3287,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/thephpleague/oauth2-server/issues", "issues": "https://github.com/thephpleague/oauth2-server/issues",
"source": "https://github.com/thephpleague/oauth2-server/tree/9.2.0" "source": "https://github.com/thephpleague/oauth2-server/tree/8.5.5"
}, },
"funding": [ "funding": [
{ {
@@ -3309,7 +3295,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2025-02-15T00:49:10+00:00" "time": "2024-12-20T23:06:10+00:00"
}, },
{ {
"name": "league/uri", "name": "league/uri",
@@ -5538,119 +5524,6 @@
}, },
"time": "2023-04-04T09:54:51+00:00" "time": "2023-04-04T09:54:51+00:00"
}, },
{
"name": "psr/http-server-handler",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-server-handler.git",
"reference": "84c4fb66179be4caaf8e97bd239203245302e7d4"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-server-handler/zipball/84c4fb66179be4caaf8e97bd239203245302e7d4",
"reference": "84c4fb66179be4caaf8e97bd239203245302e7d4",
"shasum": ""
},
"require": {
"php": ">=7.0",
"psr/http-message": "^1.0 || ^2.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Server\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP server-side request handler",
"keywords": [
"handler",
"http",
"http-interop",
"psr",
"psr-15",
"psr-7",
"request",
"response",
"server"
],
"support": {
"source": "https://github.com/php-fig/http-server-handler/tree/1.0.2"
},
"time": "2023-04-10T20:06:20+00:00"
},
{
"name": "psr/http-server-middleware",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-server-middleware.git",
"reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-server-middleware/zipball/c1481f747daaa6a0782775cd6a8c26a1bf4a3829",
"reference": "c1481f747daaa6a0782775cd6a8c26a1bf4a3829",
"shasum": ""
},
"require": {
"php": ">=7.0",
"psr/http-message": "^1.0 || ^2.0",
"psr/http-server-handler": "^1.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Psr\\Http\\Server\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/"
}
],
"description": "Common interface for HTTP server-side middleware",
"keywords": [
"http",
"http-interop",
"middleware",
"psr",
"psr-15",
"psr-7",
"request",
"response"
],
"support": {
"issues": "https://github.com/php-fig/http-server-middleware/issues",
"source": "https://github.com/php-fig/http-server-middleware/tree/1.0.2"
},
"time": "2023-04-11T06:14:47+00:00"
},
{ {
"name": "psr/log", "name": "psr/log",
"version": "3.0.2", "version": "3.0.2",