Related questions
Get user data using access token in laravel passport client app
I have successfully created server.app and client.app using Laravel Passport documentation. Everything works as expected.
client.app Route:
Route::get('callback', function (Request $request) {
$http = new GuzzleHttp\Client;
$response = $http->post('http://server.app/oauth/token', [
'form_…
Laravel Passport token lifetime
I don't get what I'm doing wrong.
I can't set token expiration time.
<?php
namespace App\Providers;
class AuthServiceProvider extends ServiceProvider
{
public function boot()
{
$this->registerPolicies();
Passport::tokensExpireIn(Carbon::now()->addDays(1));
Passport::refreshTokensExpireIn(Carbon::now()-&…
oauth-private.key does not exist or is not readable
So, I imported another project from Bitbucket and tried to launch it using php artisan serve, I always get this error:
[LogicException]
Key path "file:///var/www/html/DesignViewer5/storage/oauth-private.key" does not
exist or is not readable
I …