kleinweb/saml-auth
Composer 安装命令:
composer require kleinweb/saml-auth
包简介
The source code for Kleinweb SAML Auth
README 文档
README
A WordPress SAML 2.0 authentication package for Klein College sites. Built as an Acorn service provider, it wraps wp-saml-auth with custom login page modifications, managed user provisioning, and bulk user import capabilities.
Features
- SAML 2.0 Single Sign-On via institutional Identity Provider
- Custom WordPress login page with IdP toggle
- Managed user accounts with SAML attribute mapping
- Bulk user import from CSV
- SP metadata endpoint at
/sp/metadata
Requirements
- PHP 8.3+
- WordPress with Acorn 5.0+
- wp-saml-auth plugin
Installation
composer require kleinweb/saml-auth
The service provider is auto-discovered via Acorn. Configure in config/kleinweb-auth.php.
Configuration
X.509 certificates should be placed in .config/x509/:
.config/x509/keys/<name>.key- Private key.config/x509/certs/<name>.crt- Certificate
Key config options in config/kleinweb-auth.php:
allow_local_login- Enable/disable WordPress password login (default:true)auto_provision- Auto-create accounts for new IdP users (default:false)default_role- Role assigned to provisioned users
Development
just check # Run all QA checks just fix # Apply formatters and fixers just build # Build frontend assets just dev # Watch mode
Tools
References
SAML Specifications
- Assertions and Protocols for the OASIS Security Assertion Markup Language (SAML) V2.0
- Glossary for the OASIS Security Assertion Markup Language (SAML) V2.0
- Metadata for the OASIS Security Assertion Markup Language (SAML) V2.0
- Profiles for the OASIS Security Assertion Markup Language (SAML) V2.0
SAML Attribute Naming Conventions
- SAML V2.0 X.500/LDAP Attribute Profile
- Attribute Naming - Shibboleth Concepts
- eduPerson Object Class Specification (20220208) v4.4.0
eduPersonDisplayPronouns
Background
kleinweb/saml-auth 适用场景与选型建议
kleinweb/saml-auth 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 256 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 04 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 kleinweb/saml-auth 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 kleinweb/saml-auth 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 256
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2025-04-15