socialite

This commit is contained in:
2021-02-12 15:54:20 +09:00
parent d976d191cb
commit e16569b26b

View File

@@ -75,8 +75,7 @@ class LoginController extends Controller
* @return Socialite * @return Socialite
*/ */
public function redirectToProvider() { public function redirectToProvider() {
//return Socialite::driver('eveonline')->redirect(); return Socialite::driver('eveonline')->redirect();
return Socialite::with('eveonline')->redirect();
} }
/** /**
@@ -85,8 +84,7 @@ class LoginController extends Controller
*/ */
public function handleProviderCallback() { public function handleProviderCallback() {
//Get the sso user from the socialite driver //Get the sso user from the socialite driver
//$ssoUser = Socialite::driver('eveonline')->user(); $ssoUser = Socialite::driver('eveonline')->user();
$ssoUser = Socialite::with('eveonline')->user();
if(Auth::check()) { if(Auth::check()) {
//If a refresh token is present, then we are doing a scope callback //If a refresh token is present, then we are doing a scope callback