hmmh/be-auto-login
Composer 安装命令:
composer require hmmh/be-auto-login
包简介
Auto BE login for TYPO3
关键字:
README 文档
README
This extension will allow you to login to the TYPO3 backend without providing username and password manually. This may be quite usefull during development and may save a lot of time.
Installation
Installation can be done via the TYPO3 extension manager or by using composer. As auto login will only work in development mode
use --dev option for composer installation.
composer require hmmh/be-auto-login --dev
Configuration
Access restrictions
For security reasons auto login will only be possible if your TYPO3 system is running in development application context, see TYPO3 API reference for a general explanation.
Additionally you can restrict auto login to a certain pool of IP addresses by modifying the the setting
White list with ip addresses in the extension configuration. An IP address pool can be specified by a comma separated
list of single IP addresses and IP ranges (defined by using "*" as wildcard character).
| value | description |
|---|---|
| * | Any IP address. This is the default value |
| 192.168.0.123 | One specific IP address |
| 192.168.0.123, 192.168.0.227 | Two specific IP addresses |
| 192.168.0.* | A range of IP addresses from 192.168.0.0 to 192.168.0.255 |
| 192.168.0.*, 192.168.1.22, 192.168.1.23 | Mixture of single IP addresses and IP ranges |
How to auto login?
In order to use auto login you need the username of a valid TYPO3 backend user account. This username will be used to login using one of the following methods.
By .env file
If you always want to use the same user name for auto login you can simply define it in a .env file which
has to be stored in your document root or in a folder above it.
Example .env file:
TYPO3_AUTOLOGIN_USER=example-user
By Cookie
If you need a bit more flexibility you can specify the user name by setting a cookie in your browser.
You can do this by using the developer tools of the browser of your choice by using the built in developer
console (often opened by pressing F12). Set the cookie name to TYPO3_AUTOLOGIN_USER and store the username as
cookie value.
By GET parameter
The user name can be specified via GET parameter. To choose a user name for auto login you simply open your
TYPO3 backend using http://127.0.0.1/typo3/?TYPO3_AUTOLOGIN_USER=admin (substitute 127.0.0.1 with your domain name).
hmmh/be-auto-login 适用场景与选型建议
hmmh/be-auto-login 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 611 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 08 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「backend」 「login」 「developer」 「typo3」 「auto」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hmmh/be-auto-login 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hmmh/be-auto-login 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hmmh/be-auto-login 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Client for Keboola Developer Portal
WeChat OAuth SDK
Debugging a problem and need to login as one of your customers? This allows you to authenticate as any of your customers.
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
Developer Tool: generate DataObjects using a simple form. Helps you create a fully ornamented DataObject.
统计信息
- 总下载量: 611
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2019-08-13