Skip to content

sessionliang/laravel-admin-ext-sso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

laravel-admin单点登录扩展

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages