studentaffairsuwm / shibboleth
该软件包已被废弃,不再维护。作者建议使用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: 2022-02-01 12:49:36 UTC
README
此软件包提供了一种简单的方式来实现 Laravel 5 的 Shibboleth 认证。
功能
- 与 Laravel 5 的兼容性
- 包括用户和组模型示例
- 能够通过https://github.com/mrclay/shibalike)模拟 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 版本的开发。然而,我们欢迎拉取请求!您可以自由地使用任何低于 1.0.0 的标签来使用与 Laravel 4 兼容的版本。