Changeset View
Changeset View
Standalone View
Standalone View
config.local/src/database/seeds/OauthClientSeeder.php
Show All 22 Lines | public function run() | ||||
'provider' => 'users', | 'provider' => 'users', | ||||
'redirect' => 'https://' . \config('app.website_domain'), | 'redirect' => 'https://' . \config('app.website_domain'), | ||||
'personal_access_client' => 0, | 'personal_access_client' => 0, | ||||
'password_client' => 1, | 'password_client' => 1, | ||||
'revoked' => false, | 'revoked' => false, | ||||
]); | ]); | ||||
$client->id = \config('auth.proxy.client_id'); | $client->id = \config('auth.proxy.client_id'); | ||||
$client->save(); | $client->save(); | ||||
$companionAppClient = Passport::client()->forceFill([ | |||||
'user_id' => null, | |||||
'name' => "CompanionApp Password Grant Client", | |||||
'secret' => \config('auth.companion_app.client_secret'), | |||||
'provider' => 'users', | |||||
'redirect' => 'https://' . \config('app.website_domain'), | |||||
'personal_access_client' => 0, | |||||
'password_client' => 1, | |||||
'revoked' => false, | |||||
]); | |||||
$companionAppClient->id = \config('auth.companion_app.client_id'); | |||||
$companionAppClient->save(); | |||||
} | } | ||||
} | } |