wizkunde / samlbase
1.6.3
2023-04-18 06:58 UTC
Requires
- guzzlehttp/guzzle: ^7.5
- robrichards/xmlseclibs: ~3.1.0
- symfony/dependency-injection: ^5.4
- twig/twig: ^3.4
README
## 简介 构建一个功能丰富的 SAML 服务提供者,能够与任何 SAML2 身份提供者进行通信。它涵盖了几乎全部的 SAML2 范围,基础正在不断扩大。
该库用于将全球市场领导者与其 SAML2 身份提供者连接起来。
## 功能
- 解析来自身份提供者的元数据
- 自动服务提供者元数据与身份提供者交换
- 通过 POST 和重定向绑定进行身份验证
- 断言消费者服务
- 使用 HTTP-Artifact 通过重定向和 POST 绑定进行工件解析
- 处理来自身份提供者的身份验证响应
- 通过 POST 和重定向进行单点登出
- 由身份提供者发起的单点登出
- 属性映射
- 对所有请求和元数据进行签名和验证
- 多种 NameID 格式
- 加密和解密
## 设置 composer require gogentooss/samlbase
即将推出
1. Add Scoping and Conditions to AuthnRequest
2. Add AttributeQuery and AttributeResponse
3. Apply Assertions
4. Support multiple identifier types (BaseID, NameID, EncryptedID)
5. Add Statement Element support
6. Add Advice Element support
7. Increase the SAML2 scope compatibility of the library (Continuous, version 1.1.0 has a lot of these already)
8. Add the SOAP Binding for ACS
示例(相对于软件包根目录)
/example/metadata.php - Service Provider Metadata
/example/index.php - Example AuthNRequest (Redirect and POST binding)
/example/response.php - Example AuthNResponse target file (POST Binding)
/example/attributes.php - WIP AttributeQuery request after being logged in (requires attributequery service on the IDP)
/example/logout.php - Logout request
/example/logoutresponse.php - Example LogoutResponse handling
许可信息
This code is released under the OSL v3 license
Info about the license can be found here: https://open-source.org.cn/licenses/OSL-3.0