feat: 🛂 integrate Authentik authentication with Coolify

- Configured Authentik as the OAuth provider in Coolify.
This commit is contained in:
Danilo Martinelli
2024-09-29 13:51:41 -03:00
parent d54fa6a680
commit 96ef0ef749
10 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('oauth_settings', function (Blueprint $table) {
Schema::table('oauth_settings', function (Blueprint $table) {
$table->string('base_url')->nullable();
});
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('oauth_settings', function (Blueprint $table) {
Schema::table('oauth_settings', function (Blueprint $table) {
$table->dropColumn('base_url');
});
});
}
};

View File

@@ -32,5 +32,9 @@ class OauthSettingSeeder extends Seeder
'id' => 4,
'provider' => 'google',
]);
OauthSetting::firstOrCreate([
'id' => 5,
'provider' => 'authentik',
]);
}
}