nirou8/laravel5-multiple-saml2
Composer 安装命令:
composer require nirou8/laravel5-multiple-saml2
包简介
A Laravel5 package for Saml2 integration as an SP based on OneLogin toolkit
README 文档
README
A Laravel package for Saml2 integration as a SP (service provider) based on OneLogin toolkit.
The aim of this library is to be as simple as possible.
Installation - Composer
You can install the package via composer:
composer require nirou8/laravel5-multiple-saml2
If you are using Laravel 5.5 and up, the service provider will automatically get registered.
For older versions of Laravel (<5.5), you have to add the service provider and alias to config/app.php:
'providers' => [ ... Nirou\Saml2\Saml2ServiceProvider::class, ] 'alias' => [ ... 'Saml2' => Nirou\Saml2\Facades\Saml2Auth::class, ]
Then publish the config file with php artisan vendor:publish. This will add the file app/config/saml2_settings.php. This config is handled almost directly by OneLogin so you may get further references there, but will cover here what's really necessary. There are some other config about routes you may want to check, they are pretty straightforward.
Configuration
Once you publish your saml2_settings.php to your own files, you need to configure your sp and IDP (remote server). The only real difference between this config and the one that OneLogin uses, is that the SP entityId, assertionConsumerService url and singleLogoutService URL are injected by the library. They are taken from routes 'saml_metadata', 'saml_acs' and 'saml_sls' respectively.
Remember that you don't need to implement those routes, but you'll need to add them to your IDP configuration. For example, if you use simplesamlphp, add the following to /metadata/sp-remote.php
You can check that metadata if you actually navigate to 'http://laravel_url/saml2/metadata'
nirou8/laravel5-multiple-saml2 适用场景与选型建议
nirou8/laravel5-multiple-saml2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 93 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 03 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「idp」 「saml」 「SAML2」 「sp」 「onelogin」 「laravel5」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nirou8/laravel5-multiple-saml2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nirou8/laravel5-multiple-saml2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nirou8/laravel5-multiple-saml2 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
OAuth 1.0 Client Library for Goodreads
A Laravel package for Saml2 integration as a SP (service provider) for multiple IdPs, based on OneLogin toolkit which is much more lightweight than simplesamlphp.
Zend\Authentication SAML adapter. Uses existing simpleSAMLphp install.
Light SAML 2.0 PHP library
A Laravel package for Saml2 integration as a SP (service provider) for multiple IdPs, based on OneLogin toolkit which is much more lightweight than simplesamlphp.
SSO Authentication for your TYPO3 Frontend
统计信息
- 总下载量: 93
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-13