wuwx / laravel-socialite-neupass
Installs: 1 688
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 1
Open Issues: 0
Requires
- php: ^7.3|^8.0
- apereo/phpcas: ^1.6
- illuminate/support: ^5.6|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- laravel/socialite: ^3.0|^4.0|^5.0
- ramsey/collection: ^1.2
Requires (Dev)
- orchestra/testbench: ^3.6|^4.0|^5.0|^6.0|^7.0|^8.0|^9.0
- phpunit/phpunit: ^7.0|^8.0|^9.0|^10.0|^11.0
README
composer require wuwx/laravel-socialite-neupass
<?php use Laravel\Socialite\Facades\Socialite; class LoginController extends Controller { public function showLoginForm() { return redirect()->route("login.neupass"); } public function redirectToProvider() { return Socialite::driver('neupass') ->redirectUrl(request()->getUri() . "/callback") ->redirect(); } public function handleProviderCallback() { $user = Socialite::driver('neupass')->user(); } }
Route::get('login/neupass', 'Auth\LoginController@redirectToProvider')->name("login.neupass"); Route::get('login/neupass/callback', 'Auth\LoginController@handleProviderCallback')->name("login.neupass.callback");