Базовая версия клиента авторизации по протоколу OAuth2

This commit is contained in:
Andrey Pokidov
2020-02-27 13:10:22 +07:00
commit 12b74a2bf1
86 changed files with 8992 additions and 0 deletions

23
routes/web.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('/login', 'OAuth2\\LoginController@login')->name('login');
Route::get('/logout', 'Auth\\LoginController@logout')->name('logout');
Route::get('/show', 'OAuth2\\LoginController@show')->name('show');
Route::get('/login/complete', 'OAuth2\\LoginController@completeLogin')->name('complete-login');
Route::any('/info', 'InfoController@index');