WordPress.org

Русский

  • Темы
  • Плагины
  • Новости
    • Документация
    • Форумы
  • О WordPress
  • Сообщество
  • Скачать 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
  • Обновление: 2 дня назад
  • Активных установок: 10+
  • Версия WordPress 5.0 или выше
  • Совместим вплоть до: 6.8.3
  • Версия PHP 7.4 или выше
  • Язык
    English (US)
  • Метки:
    auto loginclilogintoken
  • Дополнительно

Оценки

Пока что нет ни одного отзыва.

Добавить мой отзыв

Посмотреть всеотзывы

Участники

  • sakurainternet

Поддержка

Есть что сказать? Нужна помощь?

Перейти в форум поддержки

  • О нас
  • Новости
  • Хостинг
  • Приватность
  • Витрина
  • Темы
  • Плагины
  • Паттерны
  • Обучение
  • Поддержка
  • Разработчики
  • WordPress.TV ↗
  • Присоединиться
  • События
  • Поддержать ↗
  • Пять для будущего
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Русский

  • Посетите нас в X (ранее Twitter)
  • Посетите нашу учётную запись в Bluesky
  • Посетите нашу ленту в Mastodon
  • Посетите нашу учётную запись в Threads
  • Посетите нашу страницу на Facebook
  • Посетите наш Instagram
  • Посетите нашу страницу в LinkedIn
  • Посетите нашу учётную запись в TikTok
  • Посетите наш канал YouTube
  • Посетите нашу учётную запись в Tumblr
Код — это поэзия.