예제 #1
0
파일: WebServer.php 프로젝트: jhoff/forrest
<?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);
});
예제 #2
0
<?php

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