説明
「ユーザー」→「プロフィール」の「Two-Factor 設定」を使い、アカウントに対して1つまたは複数の2要素認証を有効化し、設定してください:
- メールコード
- 時間ベースのワンタイムパスワード (TOTP)
- FIDO Universal 2nd Factor (U2F)
- バックアップコード
- ダミーメソッド (テスト用のみ)
詳細な経緯は、この記事を参照してください。
アクション & フィルター
プラグインで提供するアクションフックとフィルターフックは以下のとおり:
two_factor_providers
フィルターフックは、メールや Time Based One-Time Password などの利用可能な2要素認証プロバイダーを上書きします。配列値は、2要素認証プロバイダーの PHP クラス名です。two_factor_enabled_providers_for_user
フィルターフックは、ユーザーに対して有効化している2要素認証プロバイダーの一覧を上書きします。最初の引数は、有効なプロバイダークラス名の配列であり、2番目の引数はユーザーIDです。two_factor_user_authenticated
アクションフックは、認証処理直後に、ログインしたユーザーを判別するための最初の引数として、ログインしたWP_User
オブジェクトを返します。two_factor_token_ttl
フィルターフックは、メールトークン生成後の有効期間を秒単位で上書きします。第一引数として秒単位の時間を受け付け、また、認証するWP_User
オブジェクトの ID も受け付けます。
参加・貢献する
開発は GitHub で行われます。WordPress Slack の #core-passwords
チャンネルに参加してください (登録はこちら)。
開始方法:
$ git clone https://github.com/wordpress/two-factor.git
$ npm install
そして、変更を加えてプルリクエストを出してください。
評価
2021年1月19日
二步认证或者在中国用短信认证来得方便。
但国外真的很喜欢用谷歌那套。
2020年12月7日
This is a great plugin and is the only one I know of that provides two authentication factors per email code.
2020年12月4日
I have been using this plugin for a long time. Now that Safari 14 is the fastest browser, I have noticed that the Fido U2F functionality of this plugin does not work. I don't know if it is a problem with Safari, or the plugin. I hope it will work again soon.
2020年10月30日
This plugin works with an authenticator app, but the security key feature is defective. Message to support elicited no reply, leading one to wonder whether this plugin is still being actively developed.
2020年10月29日
I really love this plugin. And the best thing is that unlike some other plugins that don't work with custom login pages or membership plugins, it works without any effort! Thanks to all the collaborators who have put their time and effort!
2020年10月14日
FIDO U2F support is very nice!
貢献者と開発者
Two-Factor はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。
貢献者変更履歴
リリース履歴を参照してください。