robbyahnmsd/silverstripe-mfa
Composer 安装命令:
composer require robbyahnmsd/silverstripe-mfa
包简介
Enable multi-factor authentication with fallback codes
README 文档
README
With thanks to Simon Firesphere Erkelens
This module was based on pioneering work by Simon. It differs from the original implementation in its use of a pluggable React UI + JSON API architecture, and its enhanced management UI within the CMS. You can find Simon's original module here.
Requirements
- PHP ^7.1
- Silverstripe ^4.1
- defuse/php-encryption ^2.2 and OpenSSL PHP extension
Installation
Install with Composer:
composer require silverstripe/mfa ^4.0
You should also install one of the additional multi-factor authenticator modules:
Setup
After installing this module and a supported factor method module (e.g. TOTP), the default member authenticator will be replaced with the MFA authenticator instead. This will provide no change in the steps taken to log in until an MFA Method has also been configured for the site. The TOTP and WebAuthn modules will configure themselves automatically.
After installing the MFA module and having at least one method configured, MFA will automatically be enabled. By default it will be optional (users can skip MFA registration). You can make it mandatory via the Settings tab in the admin area.
The MFA flow will only be applied to members with access to the CMS or administration area. See 'Broadening the scope of MFA' for more detail.
You can disable MFA on an environment by setting a BYPASS_MFA=1 environment variable,
or via YAML config - see local development for details.
Configuring custom methods
If you have built your own MFA method, you can register it with the MethodRegistry to enable it:
SilverStripe\MFA\Service\MethodRegistry: methods: - MyCustomMethod - Another\Custom\Method\Here
Documentation
This module provides two distinct processes for MFA; verification and registration. This module provides a decoupled architecture where front-end and back-end are separate. Provided with the module is a React app that interfaces with default endpoints added by this module. Please refer to the docs for specific information about the included functionality:
- Debugging
- Creating new MFA methods
- Local development
- Encryption providers
- Data store interfaces
- Security
- Integrating with other authenticators
Module development
When adding translatable content to front-end UIs in the MFA module, you must ensure that these translations are pushed to Transifex. If this doesn't happen, they will be automatically removed in the next module released. See the translation docs for more information.
License
See license.
Versioning
This library follows Semver. According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library.
All methods, with public visibility, are part of the public API. All other methods are not part of the public API.
Where possible, we'll try to keep protected methods backwards-compatible in minor/patch versions, but if you're
overriding methods then please test your work before upgrading.
Reporting issues
Please create an issue for any bugs you've found, or features you're missing.
robbyahnmsd/silverstripe-mfa 适用场景与选型建议
robbyahnmsd/silverstripe-mfa 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 462 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「security」 「Authentication」 「module」 「silverstripe」 「2-Factor」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 robbyahnmsd/silverstripe-mfa 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 robbyahnmsd/silverstripe-mfa 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 robbyahnmsd/silverstripe-mfa 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Automatically logs-in users if they are already authenticated by a remote source. (e.g. environment variable REMOTE_USER)
GraphQL authentication for your headless Craft CMS applications.
Provide a way to secure accesses to all routes of an symfony application.
Laravel middleware to restrict a site or specific routes using HTTP basic authentication
It's a barebone security class written on PHP
Email Toolkit Plugin for CakePHP
统计信息
- 总下载量: 462
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 12
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2023-01-04