Title: Notakey Two Factor extension
Author: notakey
Published: <strong>2022 年 5 月 31 日</strong>
Last modified: 2026 年 8 月 28 日

---

搜索插件

![](https://ps.w.org/notakey-two-factor-extension/assets/banner-772x250.png?rev=
2732452)

![](https://ps.w.org/notakey-two-factor-extension/assets/icon-256x256.png?rev=2732452)

# Notakey Two Factor extension

 作者：[notakey](https://profiles.wordpress.org/notakey/)

[下载](https://downloads.wordpress.org/plugin/notakey-two-factor-extension.2.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/notakey-two-factor-extension/#description)
 * [评价](https://cn.wordpress.org/plugins/notakey-two-factor-extension/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/notakey-two-factor-extension/#developers)

 [支持](https://wordpress.org/support/plugin/notakey-two-factor-extension/)

## 描述

Users with enabled Notakey authentication provider will be sent authentication request
to registered mobile device (phone, tablet) after entering a valid username and 
password.

This plugin requires WordPress [Two-Factor](https://wordpress.org/plugins/two-factor/)
plugin, that provides base authentication framework. After installing and configuring
both plugins, an additional authentication provider will be added to provider list.
To register a mobile device for Notakey authentication, use the “Two-Factor Options”
section under “Users”  “Your Profile”. Install “Notakey Authenticator” and scan 
provided QR code with Notakey app and enter required details for device registeration.

Notakey authentication can be combined with other second factor authentication means:
TOTP, email, backup codes and others.

This plugin adds also some basic security policy options for WordPress site admins:

 * Enable Notakey 2FA provider for all users – enables Notakey authentication for
   all users (in case your users have devices already registered on other services).
 * Allow users to provide onboarding details – lets users enter their mobile number,
   if SMS code verification onboarding is used.
 * Reject user login without 2FA verification – blocks user login without any second
   factor authentication.

Other configuration options include:

 * Various options to customize authentication request.
 * Configuration for Notakey Authentication Server.

To adjust policy or configure this plugin, navigate to “Settings”  “Notakey MFA”.

Plugin requires a hosted or on-premise version of Notakey Authentication Server (
yes, there is a free version) with configured service, onboarding requirements and
API client credentials.

See our [documentation site](https://documentation.notakey.com/) for detailed instructions
how to set up Notakey Authentication Server.

#### API client setup

The plugin talks to Notakey Authentication Server (NtkAS) over its REST API and 
authenticates with OAuth 2.0 client credentials. Register an API client (client 
ID and secret) using the Notakey Authentication Appliance configuration shell, then
copy the values into “Settings”  “Notakey MFA”  “Authentication Server”.

The API client must be provisioned with at least the following scopes:

 * `urn:notakey:auth` – create and query authentication requests.
 * `urn:notakey:user` – look up service users and their registered devices.
 * `urn:notakey:usermanager` – create, update and delete service users during device
   registration.

Additionally, `urn:notakey:devicemanager` is required if you want the plugin to 
be able to remove registered devices from a user account.

Values required in the “Authentication Server” settings section:

 * Service URL – address of your NtkAS instance, e.g. `https://mfa.example.com`.
 * Client ID and Client Secret – API client credentials, found in the authentication
   server dashboard, “Access credentials” page.
 * Service ID (Access ID) – service identifier from the authentication server dashboard
   service settings.
 * Service Domain – domain announced to users, requires a DNS SRV record in that
   zone.

The plugin requests a bearer token from `POST /api/token` with `grant_type=client_credentials`
and only the scopes needed for each call. You can verify credentials manually:

    ```
    curl -X POST https://mfa.example.com/api/token \
      -d 'grant_type=client_credentials&client_id=<client_id>&client_secret=<client_secret>&scope=urn:notakey:auth urn:notakey:user urn:notakey:usermanager'
    ```

A successful response contains an `access_token` value. If the client is not provisioned
with the requested scopes, the token request fails and the plugin will not be able
to send authentication requests.

### Get Involved

Development happens [on GitHub](https://github.com/notakey/wordpress-two-factor/).

Here is how to get started:

    ```
    git clone https://github.com/notakey/wordpress-two-factor.git
    ```

Start development by starting a [devcontainer](https://code.visualstudio.com/docs/remote/containers).

Then open [a pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/)
with the suggested changes.

## 屏幕截图

[⌊Two-factor authentication security policy settings.⌉⌊Two-factor authentication
security policy settings.⌉[

Two-factor authentication security policy settings.

[⌊Notakey authentication request options.⌉⌊Notakey authentication request options
.⌉[

Notakey authentication request options.

[⌊Notakey Authentication Server settings.⌉⌊Notakey Authentication Server settings
.⌉[

Notakey Authentication Server settings.

[⌊User authentication while waiting for response from Notakey app.⌉⌊User authentication
while waiting for response from Notakey app.⌉[

User authentication while waiting for response from Notakey app.

## 评价

![](https://secure.gravatar.com/avatar/ad4173ac988b0eca426031c9ebc2ae471666f02fdb83e13c11ee3c7ece2fc4b9?
s=60&d=retro&r=g)

### 󠀁[Took 10m to setup](https://wordpress.org/support/topic/took-10m-to-setup/)󠁿

 [gkirstei](https://profiles.wordpress.org/gkirstei/) 2022 年 7 月 8 日

Good thing is that cloud version is free for up to 6 users. You need a credit card
to setup a cloud identity server, but unless you have more than 6 users it will 
be not charged. Setup is quite straight forward and i can use the appliance for 
as many websites I want. Additionally there are built in features what i can use
to protect my rdp and vpn connections. One solution/identity for many tasks.

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/)

## 贡献者及开发者

「Notakey Two Factor extension」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ notakey ](https://profiles.wordpress.org/notakey/)

[帮助将「Notakey Two Factor extension」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/notakey-two-factor-extension)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/notakey-two-factor-extension/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/notakey-two-factor-extension/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/notakey-two-factor-extension/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/notakey-two-factor-extension/)。

## 更新日志

See the [release history](https://github.com/notakey/wordpress-two-factor/releases).

## 额外信息

 *  版本 **2.0.1**
 *  最后更新：**1 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 4.3 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/notakey-two-factor-extension/)
 * 标签
 * [authentication](https://cn.wordpress.org/plugins/tags/authentication/)[MFA](https://cn.wordpress.org/plugins/tags/mfa/)
   [two factor](https://cn.wordpress.org/plugins/tags/two-factor/)[two step](https://cn.wordpress.org/plugins/tags/two-step/)
 *  [高级视图](https://cn.wordpress.org/plugins/notakey-two-factor-extension/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/notakey-two-factor-extension/reviews/)

## 贡献者

 *   [ notakey ](https://profiles.wordpress.org/notakey/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/notakey-two-factor-extension/)