Esempio n. 1
0
<?php

/*
|--------------------------------------------------------------------------
| Forrest Routes
|--------------------------------------------------------------------------
|
| Here are the Web Server authentication routes
|
*/
Route::get('/authenticate', function () {
    return Forrest::authenticate();
});
Route::get('/callback', function () {
    Forrest::callback();
    $url = Config::get('forrest.authRedirect');
    return Redirect::to($url);
});
Esempio n. 2
0
<?php

/*
|--------------------------------------------------------------------------
| Forrest Routes
|--------------------------------------------------------------------------
|
| UserPassword authentication routes
|
*/
Route::get('/authenticate', function () {
    Forrest::authenticate();
    $url = Config::get('forrest.authRedirect');
    return Redirect::to($url);
});