定制 mzm/sso 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mzm/sso

最新稳定版本:1.1.0

Composer 安装命令:

composer require mzm/sso

包简介

Laravel package for SSO integration between apps clients

README 文档

README

Single Sign On client package for Laravel project

Requirements

  • Laravel 8+
  • PHP 9.x
  • Composer version 2

How it works?

User visits Agencies System and unique token is generated. When new token is generated we need to attach User session to his session in Agencies System so he will be redirected to Server and back to Agencies Syste at this moment new session in Server will be created and associated with User session in Agencies System's page. When User visits other System cross Agencies same steps will be done except that when User will be redirected to Server he already use his old session and same session id which associated with Token#1.

Installation

Server

Install this package using composer.

$ composer require mzm/sso

Copy config file to Laravel project config/ folder.

$ php artisan vendor:publish --tag=sso-config

Copy views file to Laravel project resources/views/ folder.

$ php artisan vendor:publish --tag=sso-views

options in your .env file:

SSO_ENABLE=true
SSO_BASE_HOME=home
SSO_ORIGIN=
SSO_TOKEN=
SSO_BASE_URL=
SSO_GUARD=web
SSO_CACHE_KEY=
SSO_USER_MODEL=\App\Models\User
SSO_AUTH_FIELDS=email

Button

<x-sso::button />

SSO Logged

Permission Folder

mkdir -p storage/logs/sso

permission & owner

chmod -R 775 storage/logs/sso
chown -R www-data:www-data storage/logs/sso

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-11