megaads/sso-client

Sso client package for laravel
1,291
Install
composer require megaads/sso-client
Latest Version:1.1.49
PHP:>=5.4.0
License:MIT
Last Updated:Dec 26, 2025
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...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

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

408,553,772 609
nunomaduro/collision

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

387,976,821 4,658