Skip to content

Commit 96c194a

Browse files
authored
Merge pull request #575 from dbarzin/dev
Passpoort 13 + update
2 parents 5bd16e5 + a7249b4 commit 96c194a

File tree

8 files changed

+675
-1372
lines changed

8 files changed

+675
-1372
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"directorytree/ldaprecord-laravel": "^3.4",
1010
"erusev/parsedown": "^1.7",
1111
"laravel/framework": "^11.9",
12-
"laravel/passport": "^12.3",
12+
"laravel/passport": "^13",
1313
"laravel/sanctum": "^4.0",
1414
"laravel/socialite": "^5.16",
1515
"laravel/tinker": "^2.9",

composer.lock

Lines changed: 627 additions & 492 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
'api' => [
4444
'driver' => 'passport',
4545
'provider' => 'users',
46-
'hash' => true,
46+
// 'hash' => true,
4747
],
4848
],
4949

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*/
12+
public function up(): void
13+
{
14+
Schema::create('oauth_device_codes', function (Blueprint $table) {
15+
$table->char('id', 80)->primary();
16+
$table->foreignId('user_id')->nullable()->index();
17+
$table->foreignUuid('client_id')->index();
18+
$table->char('user_code', 8)->unique();
19+
$table->text('scopes');
20+
$table->boolean('revoked');
21+
$table->dateTime('user_approved_at')->nullable();
22+
$table->dateTime('last_polled_at')->nullable();
23+
$table->dateTime('expires_at')->nullable();
24+
});
25+
}
26+
27+
/**
28+
* Reverse the migrations.
29+
*/
30+
public function down(): void
31+
{
32+
Schema::dropIfExists('oauth_device_codes');
33+
}
34+
35+
/**
36+
* Get the migration connection name.
37+
*/
38+
public function getConnection(): ?string
39+
{
40+
return $this->connection ?? config('passport.connection');
41+
}
42+
};

0 commit comments

Comments
 (0)