承接 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

统计信息

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

GitHub 信息

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

其他信息

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