vladmeh / socialite-passport
Passport Laravel Socialite Provider
1.0.1
2020-03-16 09:31 UTC
Requires
- php: ^7.2.5
- ext-json: *
- laravel/framework: ^7.0
- laravel/socialite: ^4.3
Requires (Dev)
- phpunit/phpunit: ^7.0|^8.0
This package is auto-updated.
Last update: 2024-10-16 20:46:52 UTC
README
Introduction
Laravel Socialite Passport Provider extends interface Laravel Socialite to OAuth authentication with Laravel Passport.
Official Documentation
Documentation for Socialite can be found on the Laravel website.
Install
composer
composer require laravel/socialite vladmeh/socialite-passport
config/services.php
... 'passport' => [ 'api_url' => env('PASSPORT_API_URL'), 'client_id' => env('PASSPORT_CLIENT_ID'), 'client_secret' => env('PASSPORT_CLIENT_SECRET'), 'redirect' => env('PASSPORT_REDIRECT'), ],
.env
... PASSPORT_API_URL=http://url.api.service PASSPORT_CLIENT_ID=passport_client_id PASSPORT_CLIENT_SECRET=passport_client_secret PASSPORT_REDIRECT=http://your-callback-url
terminal
php artisan cache:clear php artisan config:clear php artisan config:cache