Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/sso-client
https://github.com/megaads-vn/sso-client
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/megaads-vn/sso-client
- Owner: megaads-vn
- Created: 2019-08-21T02:11:05.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-23T04:43:51.000Z (3 months ago)
- Last Synced: 2024-12-23T10:49:46.678Z (16 days ago)
- Language: PHP
- Size: 64.5 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
];
```