saitswebuwm / shibboleth
此软件包最新版本(1.1.1)没有可用的许可证信息。
为Laravel 5.x启用基本Shibboleth支持
1.1.1
2016-09-02 19:19 UTC
Requires
- php: >=5.4.0
- illuminate/support: 5.*
- mrclay/shibalike: 1.0.0
- dev-master
- 1.1.1
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.0
- 0.5.8
- 0.5.7
- 0.5.6
- 0.5.5
- 0.5.4
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5
- 0.2
- 0.1
- dev-develop
- dev-hotfix/1.0.9
- dev-hotfix/1.0.8
- dev-hotfix/1.0.7
- dev-hotfix/1.0.6
- dev-hotfix/1.0.5
- dev-release/1.0.4
- dev-feature/jwt-auth-upgrade
- dev-hotfix/1.0.2
- dev-laravel4
This package is not auto-updated.
Last update: 2024-09-14 17:16:16 UTC
README
此软件包提供了一种简单的方式来为Laravel 5实现Shibboleth身份验证。
功能
- 与Laravel 5兼容
- 包括用户和组模型示例
- 能够通过https://github.com/mrclay/shibalike(Shibboleth类似)来模拟IdP
先决条件
为了使用此插件,我们假设您已经配置了现有的Shibboleth SP和Shibboleth IdP。本指南不会(也不会)解释如何设置这些。
安装
在您的composer.json
文件中包含以下内容,然后运行composer update
(或在新的项目中运行composer install
)。
{
"require": {
"studentaffairsuwm/shibboleth": "1.1.1"
}
}
然后,在您的/config/app.php
文件中的Providers
数组内追加以下行。
'StudentAffairsUwm\Shibboleth\ShibbolethServiceProvider'
您还需要将其添加到您的/config/auth.php
文件中。
/*
|--------------------------------------------------------------------------
| 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',
最后,我们需要发布一些默认模型、数据库迁移和配置文件到您的项目中。我们包括了一个简单的用户和组表的迁移,您可以在此基础上进行扩展。
运行以下命令进行发布并迁移数据库
$ php artisan vendor:publish
$ php artisan migrate
迁移成功运行后,将您的/config/auth.php
文件中的驱动程序更改为shibboleth
。
'driver' => 'shibboleth'
寻找Laravel 4版本?
目前我们已停止此插件Laravel 4版本的开发。我们欢迎pull请求!请随意使用任何小于1.0.0的标签用于与Laravel 4兼容的版本。