saitswebuwm/shibboleth
Composer 安装命令:
composer require saitswebuwm/shibboleth
包简介
Enable basic Shibboleth support for Laravel 5.x
README 文档
README
This package provides an easy way to implement Shibboleth Authentication for Laravel 5.
Features
- Compatibility with Laravel 5
- Includes User and Group model examples
- Ability to emulate an IdP (via https://github.com/mrclay/shibalike)
Pre-Requisites
In order to use this plugin, we assume you already have a pre-existing Shibboleth SP and Shibboleth IdP configured. This does not (and will not) go into explaining how to set that up.
Installation
Include the following in your composer.json file and run composer update (or composer install if it's a new project).
{
"require": {
"studentaffairsuwm/shibboleth": "1.1.1"
}
}
Then, append the following line inside your /config/app.php file within the Providers array.
'StudentAffairsUwm\Shibboleth\ShibbolethServiceProvider'
You'll also want to add this to your /config/auth.php file.
/*
|--------------------------------------------------------------------------
| Group Model
| --------------------------------------------------------------------------
|
| When using the "shibboleth" authentication driver, it requires that a
| group model is supported. Of course, it is often just the "Group" model
| but you may use whatever you like.
|
*/
'group_model' => 'App\Group',
Finally, we just need to publish to include some default models, the database migrations, and the configuration file in your project. We include migrations for a simple user and group table, it is up to you to expand upon those.
Run the following commands to publish and then migrate your database:
$ php artisan vendor:publish
$ php artisan migrate
Once the migrations have run successfully, change the driver to shibboleth in your /config/auth.php file.
'driver' => 'shibboleth'
Looking for Laravel 4?
We have stopped development on the Laravel 4 version of this plugin for now. We are welcoming pull requests, however! Feel free to use any tag below 1.0.0 for Laravel 4 compatible versions.
saitswebuwm/shibboleth 适用场景与选型建议
saitswebuwm/shibboleth 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.98k 次下载、GitHub Stars 达 30, 最近一次更新时间为 2014 年 03 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 saitswebuwm/shibboleth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 saitswebuwm/shibboleth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 33
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2014-03-10