Looking to hire Laravel developers? Try LaraJobs

sso maintained by dm-laravel-admin-ext

Description
laravel-admin 单点登录扩展
Author
Last update
2019/04/11 11:41 (dev-master)
License
Downloads
54

Comments
comments powered by Disqus

laravel-admin-ext-sso

install

composer require dm-laravel-admin-ext/sso

configure

publish config.php and migration

php artisan vendor:publish --provider="DM\SSO\SSOServiceProvider"

migrate:

php artisan migrate

this command will create oss tables to authorize.

you can create sso client through command

php artisan sso:create

add middleware to Http/kernel.php


protected $middlewareGroups = [
    'web' => [
        ...
        // sso 
        \DM\SSO\Http\Middleware\SSOLoginWithTicket::class,
    ],

usage

Get redirect url to client


$url = SSOController::loginTo($app_id);