mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 19:22:10 -05:00
beta
This commit is contained in:
parent
a5a8f9d853
commit
be1341b3e9
@ -35,4 +35,26 @@ return [
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
'google' => [
|
||||||
|
'client_id' => env('GOOGLE_CLIENT_ID'),
|
||||||
|
'client_secret' => env('GOOGLE_CLIENT_SECRET'),
|
||||||
|
'redirect' => env('GOOGLE_REDIRECT_URI', '/oauth/callback/google'),
|
||||||
|
'enabled' => env('ENABLE_GOOGLE_LOGIN', false),
|
||||||
|
],
|
||||||
|
|
||||||
|
'facebook' => [
|
||||||
|
'client_id' => env('FACEBOOK_CLIENT_ID'),
|
||||||
|
'client_secret' => env('FACEBOOK_CLIENT_SECRET'),
|
||||||
|
'redirect' => env('FACEBOOK_REDIRECT_URI', '/oauth/callback/facebook'),
|
||||||
|
'enabled' => env('ENABLE_FACEBOOK_LOGIN', false),
|
||||||
|
],
|
||||||
|
|
||||||
|
'apple' => [
|
||||||
|
'client_id' => env('APPLE_CLIENT_ID'),
|
||||||
|
'client_secret' => env('APPLE_CLIENT_SECRET'),
|
||||||
|
'redirect' => env('APPLE_REDIRECT_URI', '/oauth/callback/apple'),
|
||||||
|
'stateless' => true,
|
||||||
|
'enabled' => env('ENABLE_APPLE_LOGIN', false),
|
||||||
|
],
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
|
||||||
|
return new class extends Migration {
|
||||||
|
public function up()
|
||||||
|
{
|
||||||
|
Schema::create('socialite_users', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
|
||||||
|
$table->foreignId('user_id')->constrained()->cascadeOnDelete()->cascadeOnUpdate();
|
||||||
|
$table->string('provider');
|
||||||
|
$table->string('provider_id');
|
||||||
|
|
||||||
|
$table->timestamps();
|
||||||
|
|
||||||
|
$table->unique([
|
||||||
|
'provider',
|
||||||
|
'provider_id',
|
||||||
|
]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down()
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('socialite_users');
|
||||||
|
}
|
||||||
|
};
|
||||||
@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Spatie\LaravelSettings\Migrations\SettingsMigration;
|
||||||
|
|
||||||
|
return new class extends SettingsMigration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$this->migrator->add('general.enable_google_login', false);
|
||||||
|
$this->migrator->add('general.google_client_id', null);
|
||||||
|
$this->migrator->add('general.google_client_secret', null);
|
||||||
|
|
||||||
|
$this->migrator->add('general.enable_facebook_login', false);
|
||||||
|
$this->migrator->add('general.facebook_client_id', null);
|
||||||
|
$this->migrator->add('general.facebook_client_secret', null);
|
||||||
|
|
||||||
|
$this->migrator->add('general.enable_apple_login', false);
|
||||||
|
$this->migrator->add('general.apple_client_id', null);
|
||||||
|
$this->migrator->add('general.apple_client_secret', null);
|
||||||
|
}
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user