Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/megaads-vn/sso-client


https://github.com/megaads-vn/sso-client

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# MEGAADS SSO CLIENT PACKAGE
- Install
```
composer require megaads/sso-client
```
- Registry app service provider in project app.php config file
```
Megaads\SsoClient\SsoClientServiceProvider::class
```
- Make laravel auth.
```
php artisan make:auth
php artisan migrate
```
- Publish package config file
```
php artisan vendor:publish --provider="Megaads\SsoClient\SsoClientServiceProvider" --tag=config --force
```
After file publish open and edit file config
- Registry custom authentication middleware in `Kernel.php` file
```
'sso' => \Megaads\SsoClient\Middleware\CustomAuthenticate::class,
```
- Change middleware on `Kernel.php` like below:
```
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
\App\Http\Middleware\TrimStrings::class,
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,

//Add bellow linesπŸ‘‡πŸ»
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class
];
```