WordPress.org

China 简体中文

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

Plugin Directory

Secure Passkeys

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

Secure Passkeys

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

描述

Secure Passkeys is a powerful WordPress plugin that enables seamless passwordless authentication using WebAuthn technology. By eliminating the need for traditional passwords, it enhances security and improves the user login experience. With support for biometric authentication, security keys, and device-bound credentials, Secure Passkey provides a robust and user-friendly solution for modern authentication.

Unlike traditional password-based authentication, Secure Passkey leverages cryptographic key pairs to ensure secure logins. The private key remains securely stored on the user’s device, while the public key is registered with the WordPress site. This method protects against phishing attacks and password breaches, ensuring that only authorized users can gain access.

Secure Passkeys integrates effortlessly into WordPress, allowing users to register and manage their passkeys from their profile settings. Once registered, users can log in using their fingerprint, face recognition, or a hardware security key without the need to remember or enter a password.

Features

  • Passwordless Login: Secure authentication via WebAuthn with biometric devices, security keys, Touch ID, Face ID, and more.
  • Enhanced User Experience: Password-free login for a smoother user journey.
  • Integration Support:
    • WordPress default login form
    • WooCommerce login page
    • MemberPress login form
    • Easy Digital Downloads login form
    • Ultimate Member login form
  • Admin Management: Administrators can delete, activate, or deactivate users directly from plugin settings or user profiles.
  • Passkeys Reminder Notice: New option to enable or disable the passkeys reminder notice in the WordPress admin area for users who have not yet enabled passkeys.
  • Activity Logging: Monitor activity logs and track last login/registration of passkeys.
  • Multiple Passkeys: Supports multiple passkey registrations per user, with the option to set a registration limit or allow unlimited registrations.
  • Role Restrictions: Restrict and exclude specific user roles from using passkey authentication.
  • Customizable Settings: Adjust timeout settings for passkey registration and login.
  • User Verification: Enforce user verification for enhanced security.
  • Frontend Customization: Easily customize frontend themes or add your own with basic frontend skills.
  • Theme Support: Supports pre-built themes like YOOtheme (UIkit) for frontend shortcodes.
  • Shortcodes: Embed passkey login and registration forms on custom frontend pages.
  • Passkey Display: Show passkey details in admin user lists and profiles.
  • Multisite: Supports WordPress Multisite and single-site installations.
  • Database Optimization: Option to allow or disallow automatic deletion of old challenge records and activity logs (configurable schedule).

Requirements

  • WordPress 6.0 or newer.
  • PHP version 7.4 or newer.

License

Secure Passkeys is licensed under the GNU General Public License v2 or later.

屏幕截图

  • Overview
  • Passkeys
  • Activity Log
  • General Settings
  • Display Settings
  • Advanced Settings
  • Admin Edit Profile and User Page
  • Admin Add New Passkey
  • Login

安装

Minimum Requirements

  • PHP 7.4 or greater is recommended
  • MySQL 5.6 or greater is recommended

Automatic installation

Automatic installation is the easiest option — WordPress will handles the file transfer, and you won’t need to leave your web browser. To do an automatic install of Secure Passkeys, log in to your WordPress dashboard, navigate to the Plugins menu, and click “Add New.”

In the search field type “Secure Passkeys” then click “Search Plugins.” Once you’ve found us, you can view details about it such as the point release, rating, and description. Most importantly of course, you can install it by! Click “Install Now,” and WordPress will take it from there.

Manual installation

Manual installation method requires downloading the Secure Passkeys plugin and uploading it to your web server via your favorite FTP application. The WordPress codex contains instructions on how to do this here.

常见问题

How do I enable and configure the Secure Passkeys?

After activating the plugin, a “Secure Passkeys” menu item will appear in your WordPress admin dashboard’s sidebar.

How can I add a new theme for frontend shortcodes?

You can add a custom theme for frontend shortcodes using the secure_passkeys_themes and secure_passkeys_themes_paths filters.

Register the Theme: Use the secure_passkeys_themes filter to register your new theme and make it available in the plugin settings.

<?php

add_filter('secure_passkeys_themes', function ($themes)
{
    $themes['new_theme'] = 'New Theme';
    return $themes;
}, 10, 1);

Specify the Theme Path: Use the secure_passkeys_themes_paths filter to define the file path to your custom theme’s directory.

<?php

add_filter('secure_passkeys_themes_paths', function ($themes)
{
    $themes['new_theme'] = 'your/path/new/theme/folder';
    return $themes;
}, 10, 1);

Override Template Files: Copy the template files you wish to customize from secure-passkeys/src/views/frontend/default/ to your custom theme’s folder (your/path/to/new/theme/folder). Any files not copied to your custom theme folder will be loaded from the plugin’s default theme, providing a fallback mechanism. This allows you to customize only the files you need to change.

How can I redirect users to a custom page after they log in using a passkey?

Yes, you can redirect users after a passkey login by using the secure_passkeys_login_redirect_url filter. You can add the following code snippets to your theme’s functions.php file.

Example – Redirect to a Specific URL:

This example redirects all users to a specific URL after they log in.

<?php

add_filter('secure_passkeys_login_redirect_url', function ($redirect_to) {
    // Redirect users to a custom URL after logging in with a passkey
    return 'https://your-domain.com/your-custom-path';
});

Example – Redirect Based on User Role:

This example redirects users based on their assigned role.

<?php

add_filter('secure_passkeys_login_redirect_url', function ($redirect_to) {
    $user = wp_get_current_user();

    // Redirect administrators to the WP admin dashboard
    if (in_array('administrator', $user->roles)) {
        return admin_url();
    }

    // Redirect subscribers to a custom dashboard page
    if (in_array('subscriber', $user->roles)) {
        return home_url('/dashboard');
    }

    // Default fallback URL
    return $redirect_to;
});

Are there other filters and actions?

Yes! The plugin offers a variety of filters and actions that allow developers to customize and extend its functionality. If you’re a developer, we encourage you to explore these hooks and tailor the plugin to meet your specific needs.

For a complete list of available hooks and examples, refer to the plugin’s codebase.

评价

Perfect solution

vzsi 2025 年 10 月 3 日
Big THANKS!

Perfect – lightweight, simple and free

etcio 2025 年 9 月 5 日 2 回复
What more could you possibly ask for!?

Perfect

Frank 2025 年 8 月 21 日
It has exactly the features you need. Great support too.

Fantastic plugin

amanandhishoe 2025 年 8 月 3 日
This is a fantastic plugin. Easy to configure. Works great with Woocommerce. The plugin has many filters and hooks to customize. It was easy to use the filter ‘secure_passkeys_login_redirect_url’ so after logging in with a Passkey, I can send admin users to the admin backend and keep regular users on the Woocommerce My-Account page to show them their personalized content.The short code [secure_passkeys_register_form] let me put the passkey creation form where I wanted it, on the Woocommerce Account details page. Great job. Well thought out and written plugin.

Outstanding! Does exactly what it promises.

stepdg 2025 年 7 月 19 日
Like others are saying, the plugin does exactly as promised and does it very well. So incredibly helpful without being a heavy lift. It is polished and has caused zero issues. Fantastic!

Excellent

FleetVA 2025 年 7 月 18 日
This plugin does everything it says it does. Easy to setup and it works.
阅读所有13条评价

贡献者及开发者

「Secure Passkeys」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • Mohamed Endisha

「Secure Passkeys」插件已被翻译至 2 种本地化语言。 感谢所有译者为本插件所做的贡献。

帮助将「Secure Passkeys」翻译成简体中文。

对开发感兴趣吗?

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

更新日志

1.2.2 2025-09-17

  • Security – Enhanced permission checks for administrative functions to prevent potential unauthorized access.
  • Add – Added support for initial authenticator with its AAGUID.
  • Fix – Resolved multiple PHP notices by correcting the improper use of wpdb::prepare() on static database queries.
  • Tweak – Corrected a typo in the plugin description for proper grammar.

1.2.1 2025-08-21

  • Add – Updated Microsoft Password Manager AAGUID icon.
  • Add – Added Chromium Browser AAGUID icon (previously had no icon).
  • Fix – Fixed “You are not authorized to make this request” error caused by missing or empty HTTP_REFERER.

1.2.0 2025-08-10

  • Add – Added option to enable/disable passkeys reminder notice in WordPress admin for users without passkeys enabled.
  • Add – Added support for Microsoft Password Manager authenticator with its AAGUID.
  • Tweak – Changed excluded roles selection from multiple select dropdown to individual checkboxes for better usability.
  • Fix – Improved autoloader class file path handling for better compatibility across different operating systems and environments.

1.1.0 2025-08-04

  • Add – Added support for the Ultimate Member plugin.
  • Add – Added an option to automatically generate security key name for new passkeys, so users are no longer required to enter one manually.
  • Add – Added an option to disable the logging of user activity.
  • Tweak – Added extra_wrapper_classes and extra_button_classes attributes to the [secure_passkeys_login_form] shortcode for easier CSS customization.
  • Fix – Corrected an issue where the used_at timestamp for a challenge was not being updated correctly in the database.
  • Fix – Removed the Accept-Encoding header from the fingerprint calculation to prevent potential validation errors.
  • Fix – Improved localization by removing HTML from translatable strings, ensuring they can be translated properly.
  • Fix – Resolved a PHP warning on the “Activity Log” caused by an attempt to process a non-existent is_active property on log records.

1.0.0 2025-03-05

  • Initial release.

额外信息

  • 版本 1.2.2
  • 最后更新:2 月前
  • 活跃安装数量 500+
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 6.8.3
  • PHP 版本 7.4 或更高版本
  • 语言

    English (US) 、 French (France) 和 German.

    翻译成简体中文

  • 标签
    loginpasskeyspasswordlesssecurewebauthn
  • 高级视图

评级

5 星(最高 5 星)。
  • 13 5-star reviews 5 星 13
  • 0 4-star reviews 4 星 0
  • 0 3-star reviews 3 星 0
  • 0 2-star reviews 2 星 0
  • 0 1-star reviews 1 星 0

添加我的评价

查看全部评论

贡献者

  • Mohamed Endisha

支持

最近两个月解决的问题:

总计 2,已解决 2

查看支持论坛

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

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗