WordPress.org

Hong Kong 香港中文

  • 佈景主題
  • 外掛
  • News
  • Support
  • About
  • 重要通知
  • WordPress 常見問題
  • 團隊
  • 取得 WordPress
取得 WordPress
WordPress.org

Plugin Directory

Auto Login for Sakura Rental Server

  • Submit a plugin
  • My favorites
  • Log in
  • Submit a plugin
  • My favorites
  • Log in

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 [–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.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Auto Login for Sakura Rental Server” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者
  • sakurainternet

將 Auto Login for Sakura Rental Server 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

修改日誌

1.0.0

  • Initial release

其它

  • Version 1.0.0
  • Last updated 2 個月之前
  • Active installations 10+
  • WordPress version 5.0 or higher
  • Tested up to 6.8.3
  • PHP version 7.4 or higher
  • Language
    English (US)
  • Tags
    auto loginclilogintoken
  • 進階顯示

評分

No reviews have been submitted yet.

Add my review

See all reviews

貢獻者

  • sakurainternet

支援

有話想說?需要協助?

檢視支援論壇

  • 關於我們
  • 最新消息
  • 寄存
  • 隱私權
  • 展示網站
  • 佈景主題
  • 外掛
  • 區塊版面配置
  • Learn
  • 技術支援
  • 開發者資源
  • WordPress.tv ↗
  • 共同參與
  • Events
  • Donate ↗
  • Five for the Future
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Hong Kong 香港中文

  • Visit our X (formerly Twitter) account
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 訪問我們的 Facebook 專頁
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Visit our TikTok account
  • Visit our YouTube channel
  • Visit our Tumblr account
代碼就是詩歌。