megaads/sso-client

Sso client package for laravel
1,313
Install
composer require megaads/sso-client
Latest Version:1.2.4
PHP:^8.1
Laravel:10
License:MIT
Last Updated:Sep 30, 2026
Links: GitHub  ·  Packagist
Maintainer: megaads-vn

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
    ];
    

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

644,549,754 9,698
laravel/framework

The Laravel Framework.

598,760,099 34,966
laravel/tinker

Powerful REPL for the Laravel framework.

507,193,856 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

423,477,751 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

399,241,428 4,660

Version History

Version Released PHP Laravel License
1.2.4 ^8.1 ^10.10 MIT
1.2.3 ^8.1 ^10.10 MIT
1.2.2 ^8.1 ^10.10 MIT
1.2.1 ^8.1 ^10.10 MIT
1.2.0 ^8.1 ^10.10 MIT