codefareith / cf-google-authenticator
为前端和后端账户启用Google 2FA(双因素认证)。
v1.2.4
2020-08-22 22:18 UTC
Requires
- ext-json: *
- typo3/cms-core: ^8.7 || ^9.5
- typo3/cms-reports: ^8.7 || ^9.5
- typo3/cms-setup: ^8.7 || ^9.5
Requires (Dev)
- codeception/codeception: ^4.1
- phpunit/php-code-coverage: 5.3.2
- roave/security-advisories: dev-master
- typo3/testing-framework: ^3.4.2
Suggests
- typo3/cms-felogin: Needed to support 2FA for frontend accounts.
Replaces
- codefareith/cf_google_authenticator: v1.2.4
- typo3-ter/cf-google-authenticator: v1.2.4
- v1.2.x-dev
- dev-master / 1.2.x-dev
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.7
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.1
- v1.1.0
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/composer/guzzlehttp/guzzle-6.5.8
- dev-dependabot/composer/guzzlehttp/psr7-1.8.5
- dev-dependabot/composer/codeception/codeception-4.1.22
- dev-dependabot/composer/symfony/yaml-4.4.29
- dev-dependabot/composer/symfony/polyfill-php80-1.23.1
- dev-dependabot/composer/symfony/console-4.4.29
- dev-dependabot/composer/symfony/http-foundation-5.3.6
- dev-dependabot/composer/symfony/polyfill-mbstring-1.23.1
- dev-dependabot/composer/theseer/tokenizer-1.2.1
- dev-dependabot/composer/symfony/routing-4.4.27
- dev-dependabot/composer/symfony/event-dispatcher-4.4.27
- dev-dependabot/composer/symfony/finder-4.4.27
- dev-dependabot/composer/symfony/css-selector-5.3.4
- dev-dependabot/composer/symfony/var-exporter-5.3.4
- dev-dependabot/composer/symfony/cache-5.3.4
- dev-dependabot/composer/symfony/expression-language-4.4.27
- dev-dependabot/composer/nikic/php-parser-4.12.0
- dev-dependabot/composer/typo3/cms-frontend-9.5.28
- dev-dependabot/composer/typo3/cms-reports-9.5.28
- dev-dependabot/composer/typo3/cms-extbase-9.5.28
- dev-dependabot/composer/typo3/cms-recordlist-9.5.28
- dev-dependabot/composer/typo3/cms-fluid-9.5.28
- dev-dependabot/composer/typo3/cms-backend-9.5.28
- dev-dependabot/composer/typo3/cms-setup-9.5.28
- dev-dependabot/composer/doctrine/cache-1.12.1
- dev-dependabot/composer/mikey179/vfsstream-1.6.9
- dev-dependabot/composer/doctrine/dbal-2.13.2
- dev-dependabot/composer/typo3fluid/fluid-2.7.0
- dev-dependabot/composer/codeception/codeception-4.1.21
- dev-dependabot/composer/symfony/polyfill-intl-icu-1.23.0
- dev-dependabot/composer/symfony/polyfill-php72-1.23.0
- dev-dependabot/composer/symfony/polyfill-php73-1.23.0
- dev-dependabot/composer/symfony/polyfill-intl-idn-1.23.0
- dev-dependabot/composer/symfony/polyfill-intl-normalizer-1.23.0
- dev-dependabot/composer/symfony/polyfill-ctype-1.23.0
- dev-dependabot/composer/doctrine/annotations-1.13.1
- dev-dependabot/composer/psr/log-1.1.4
- dev-dependabot/add-v2-config-file
- dev-dependabot/composer/guzzlehttp/psr7-1.8.2
- dev-dependabot/composer/symfony/cache-contracts-2.4.0
- dev-dependabot/composer/symfony/service-contracts-2.4.0
- dev-dependabot/composer/symfony/deprecation-contracts-2.4.0
- dev-dependabot/composer/typo3/cms-composer-installers-3.1.1
- dev-dependabot/composer/webmozart/assert-1.10.0
- dev-dependabot/composer/guzzlehttp/promises-1.4.1
- dev-dependabot/composer/psr/container-1.1.1
- dev-dependabot/composer/behat/gherkin-4.8.0
- dev-dependabot/composer/codeception/phpunit-wrapper-6.8.3
- dev-dependabot/composer/symfony/intl-5.2.1
- dev-dependabot/composer/sebastian/code-unit-reverse-lookup-1.0.2
- dev-dependabot/composer/sebastian/object-reflector-1.1.2
- dev-dependabot/composer/sebastian/exporter-3.1.3
- dev-dependabot/composer/sebastian/object-enumerator-3.0.4
- dev-dependabot/composer/sebastian/recursion-context-3.0.1
- dev-dependabot/composer/myclabs/deep-copy-1.10.2
- dev-dependabot/composer/doctrine/instantiator-1.4.0
- dev-dependabot/composer/typo3/phar-stream-wrapper-3.1.6
- dev-dependabot/composer/symfony/polyfill-php70-1.20.0
- dev-dependabot/composer/codeception/lib-asserts-1.13.2
- dev-dependabot/composer/paragonie/random_compat-9.99.100
- dev-dependabot/composer/phpdocumentor/reflection-docblock-5.2.2
- dev-dependabot/composer/phpdocumentor/type-resolver-1.4.0
- dev-develop
This package is auto-updated.
Last update: 2024-09-21 22:53:52 UTC
README
TYPO3 CMS扩展,用于为前端和后端账户启用Google 2FA(双因素认证)。
入门
按照以下说明在您的TYPO3 CMS安装中启用Google 2FA。
安装
该扩展需要像其他TYPO3 CMS扩展一样安装
- 切换到“扩展管理器”模块。
- 获取扩展
- 从扩展管理器获取:按“检索/更新”按钮,搜索扩展密钥cf_google_authenticator,并从存储库导入扩展。
- 从typo3.org获取:您可以从https://extensions.typo3.org/extension/cf_google_authenticator/下载当前版本(t3x或zip版本),然后将其上传到扩展管理器。
- 从packagist.org获取:使用Composer添加此扩展作为依赖项:
composer require codefareith/cf-google-authenticator
- 更改扩展配置以满足您的需求
用法
安装并激活扩展后,您将为后端和前端用户激活2FA。
后端
- 切换到“后端用户”模块
- 选择您要为其启用2FA的用户
- 导航到“Google Authenticator”选项卡
- 勾选“启用Google Authenticator”
- 在Google Authenticator应用中:扫描提供的QR码或使用提供的密钥手动设置验证器
- 使用您的应用生成的代码填写“一次性密码”
- 保存
在TYPO3 CMS后端登录屏幕上,您会注意到一个新字段“Google Authenticator Code”。如果您已为您的后端用户激活了Google 2FA,您需要输入由应用生成的代码以登录到您的后端账户。
如果您丢失了Google Authenticator,唯一禁用2FA的方法是通过数据库,将“tx_cfgoogleauthenticator_enable”设置为0,以针对所需用户。
前端
为了提供前端用户通过双因素认证来保护其账户的可能性,必须满足以下条件[1]
-
在扩展配置中,必须为前端激活2FA(默认禁用)
- 选择扩展模块并搜索“[codeFareith] Google Authenticator”。
- 右键单击齿轮(配置)
- 激活“FE启用”下的复选框,然后点击“保存”。
-
通过后端,必须在为此目的提供的页面上放置必要的插件
- 通过页面模块选择一个首选页面,并确保它仅对登录的前端用户可访问。
- 然后在上述页面上创建一个新的内容元素。
- 在“插件”选项卡下,选择“通用插件”。
- 在下一步中打开名为“插件”的下一个选项卡。
- 从下拉菜单中选择“Google Two-Factor-Authentication Setup”并点击保存。完成!
[1] 启用/禁用前端2FA后,您可能需要刷新前端缓存,以便在登录表单中显示/隐藏一次性密码字段。
历史
参阅 CHANGELOG.md