socialite
This commit is contained in:
@@ -99,25 +99,6 @@ class LoginController extends Controller
|
|||||||
->redirect();
|
->redirect();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Redirect to the provider's website
|
|
||||||
*
|
|
||||||
* @return Socialite
|
|
||||||
*/
|
|
||||||
public function redirectToProviderAlt($profile = null, Socialite $social) {
|
|
||||||
//The default scope is public data for everyone due to the OAuth2 Token
|
|
||||||
$scopes = ['publicData'];
|
|
||||||
|
|
||||||
//Let's put some information in the session to designate this is an alt call
|
|
||||||
session()->put('altCall', true);
|
|
||||||
|
|
||||||
dd($social);
|
|
||||||
|
|
||||||
return $social->driver('eveonline')
|
|
||||||
->scopes($scopes)
|
|
||||||
->redirect();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get token from callback
|
* Get token from callback
|
||||||
* Redirect to the dashboard if logging in successfully.
|
* Redirect to the dashboard if logging in successfully.
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
<h2>Register Alts for SRP Form</h2>
|
<h2>Register Alts for SRP Form</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<a href="/altlogin"><img src="{{asset('/img/eve-sso-login-white-large.png')}}"></a>
|
<a href="/login"><img src="{{asset('/img/eve-sso-login-white-large.png')}}"></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ Route::get('/', function () {
|
|||||||
* Login Display pages
|
* Login Display pages
|
||||||
*/
|
*/
|
||||||
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
|
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
|
||||||
Route::get('/altlogin', 'Auth\LoginController@redirectToProviderAlt')->name('altlogin');
|
|
||||||
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
|
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
|
||||||
Route::get('/logout', 'Auth\LoginController@logout');
|
Route::get('/logout', 'Auth\LoginController@logout');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user