跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

Auto Login for Sakura Rental Server

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

Auto Login for Sakura Rental Server

作者:sakurainternet
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Auto Login for Sakura Rental Server allows administrators to issue one-time, time-limited auto-login URLs using HMAC signatures.
This is useful for secure temporary access or system integration.

Features:
– Secure auto-login with one-time tokens
– Tokens are HMAC-signed and invalidated after use
– Token issuance and usage history (up to 100 entries per user)
– Records IP address and username of the issuer
– Rate limiting: 1 request per second per IP
– WP-CLI commands for token generation and history inspection

Example use cases:
– Temporarily granting admin access
– Safe automatic login from external systems
– Keeping an audit log of who issued a token and from where

Usage

Generate a token via CLI

wp auto-login-for-sakura-rental-server generate <user_id> [–expires=] [–remote_addr=] [–username=]

Example:

  • Default expiration time: 300 seconds
  • --expires and --username are optional

Check issue history

Token history is stored in the user meta key sakura_auto_login_history.
You can check it via WP-CLI:

wp user meta get sakura_auto_login_history

Auto-login URL format

https://example.com/?rs_auto_login_token=<64-character HMAC token>

Visiting the URL will log in as the corresponding user and redirect to the admin dashboard.

Security Notes

  • Tokens are invalidated immediately after use (one-time only)
  • Issue and usage history includes IP address, issuer username, and timestamps
  • Stored using set_transient() for caching compatibility
  • HTTPS is strongly recommended

安装

  1. Upload the plugin to /wp-content/plugins/auto-login-for-sakura-rental-server/.
  2. Activate it through the Plugins menu in WordPress.

常见问题

Can I revoke a token manually?

Yes. Run delete_transient('sakura_auto_login_token_<token>').

What happens if the URL leaks?

Anyone with the URL can log in as the target user until the token expires. Always use HTTPS and handle URLs carefully.

评价

此插件暂无评价。

贡献者及开发者

「Auto Login for Sakura Rental Server」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • sakurainternet

帮助将「Auto Login for Sakura Rental Server」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.0.0

  • Initial release

1.0.1

  • Bugfix release

额外信息

  • 版本 1.0.1
  • 最后更新:3 月前
  • 活跃安装数量 1,000+
  • WordPress 版本 5.0 或更高版本
  • 已测试的最高版本为 6.8.5
  • PHP 版本 7.4 或更高版本
  • 语言
    English (US)
  • 标签
    auto loginclilogintoken
  • 高级视图

评级

尚未提交反馈。

添加我的评价

查看全部评论

贡献者

  • sakurainternet

支持

有话要说吗?是否需要帮助?

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.