Skip to content
  • Log In
  • Register
WordPress.org
  • News
  • Download & Extend
    • Get WordPress
    • Themes
    • Patterns
    • Plugins
    • Openverse
    • Mobile
    • Hosting
  • Learn
    • Learn WordPress
    • Documentation
    • Forums
    • WordPress.tv
    • Developers
  • Community
    • Make WordPress
    • WordCamp
    • Meetups
    • Photo Directory
    • Job Board
    • Five for the Future
  • About
    • About WordPress
    • Showcase
    • Gutenberg
    • Enterprise
    • WordPress Swag Store
  • Get WordPress
Get WordPress

Plugins

  • My Favorites
  • Beta Testing
  • Developers

This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Download

yubikey-plugin

By Adam Lyons
  • Details
  • Reviews
  • Installation
  • Development
Support

Description

This is a plugin for WordPress that provides multifactor authentication with one-time passwords using the Yubikey USB token.
The plugin uses the Yubico Web service API in the authentication process.
The one-time password requirement can be enabled on a per user basis.

Screenshots

  • Entering Key ID on the profile page
  • Entering Yubico ID & API key on Yubikey options page.
  • The enhanced loginbox.
  • The Yubikey itself.

Installation

  1. Buy a Yubikey
  2. Create a Yubico ID & API Key
  3. Unzip plugin into your /wp-content/plugins/ directory.
  4. Enter Key ID on the Users -> Profile and Personal options page.
  5. Enter Yubico ID & API key on the Settings -> Yubikey options page.
    Id/key confused ? Well the Key ID is the first 12 chars from the output Your Yubikey generates,
    they don’t change, the Yubico ID and API Key is used when communicating with the Yubico authentication server.

FAQ

How much does the Yubikey cost ?

A single Yubikey is $40

Are there any special requirements for my WordPress/PHP installation ?

PHP5 with Hash & Curl libs enabled.

I have a lot of users on my WordPress installation, do they all need Yubikeys ?

No the plugin can be enabled on a per user basis.

Reviews

simple and it works

paranoidandroid88 February 3, 2023 1 reply
at first i wasnt' sure who i can trust. i mean this plugin is written by a stranger, not yubikey. So i got my unique api key from yubikey.co and installed it. Entered it into the plugin. enabled the user from user/profile, plugged in my key to generate a key, saved, logged out and logged back in and it worked. I tried any NON enabled user and of course did not enter a key via my key and got in. So here's my test that this plugin author is actually communicating with yubikey.co, I changed just one letter in my api id and tried logging in, and i could NOT. Soo... this tells me that it's trying to communicate with yubi apparently to authenticate, otherwise it would not know. Alternately, i could have deleted my api key from yubikey.co to test. regardless, it works seamlessly. I'm using WP 5.8.6

Didn’t work for me

GrampaB October 15, 2022
It appeared on the login screen but then caused login to fail "Incorrect Username or Password". I had to delete the plugin folder from the server to get in to my WP admin. I'm new to Yubikey so the error could be in how I use my new keys (though I added them both to the WP admin profile and the Yubikey API to the plugin settings page). I love the idea - wish it would work for me.

Love that I can use my YubiKey on WP

idowebwork April 3, 2020
Thanks for an amazing plugin. Hopefully the maintainer is looking and will update things to show they are tested as working with WP 5.4, since it does.

Working perfect with version 5.3.2

kose February 29, 2020
So nice to have the possibility of adding an extra layer of security to WordPress admin panel. Plugins is working perfect with version 5.3.2. I encountered some semantic issues, thus, using in WordPress "Yubico API ID and Yubico API key" vs "Client ID and Secret Key" on Yubico's site, not important.

Simple and flawless operation

pabstm February 6, 2019 1 reply
Exactly what I was looking for. Just install, activate it and get/insert an API Key (which can be obtained in seconds). Subsequently every user can manage the Yubikey-Settings right in the profile. Nothing more, Nothing less.

Couldn’t get it to work

dhoogmoed December 15, 2018 1 reply
WP 5. and a Fairly old Yubikey. Installation and API activation worked without hassle but when entering the OTP on the login page it just fails to grant access. No obvious errors. I have no time to trouble shoot, so will look for an alternative 2fa.
Read all 8 reviews

Contributors & Developers

“yubikey-plugin” is open source software. The following people have contributed to this plugin.

Contributors
  • Henrik Schack

Translate “yubikey-plugin” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.3

Yubi API Version 2 Implemented

2.2

Darn SVN messing me up

2.1

Working with more recent API from YubiKey

0.96

Some depricated stuff removed.
Tab index on login page remove.

0.95

API key URL updated

0.94

  • Version mess fixed

0.93

  • Styling on descriptions added, once again thanks to Uwe Moosheimer

0.92

  • German translation by Uwe Moosheimer added

0.91

  • Tab index fix on registration page

0.90

  • Support for multiple Yubikeys per account.
  • Tested with WordPress 3.1.1

0.82

  • Russian translation contributed by M. Comfi http://www.comfi.com/

0.81

  • WordPress global var $is_profile_page has been changed into a constant
  • IS_PROFILE_PAGE. Thanks to Koen Vervloesem for reporting this.

0.80

  • More multiuser friendly version. Now, a Yubikey can be registered during
  • registration. An Administrator can disable the OTP requirement for other users

0.71

  • Initial release

Meta

  • Version: 2.3
  • Last updated: 4 years ago
  • Active installations: 600+
  • WordPress Version: 3.8 or higher
  • Tags:
    authenticationloginpasswordsecurityyubikey
  • Advanced View

Ratings

See all
  • 5 stars 6
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 2
Log in to submit a review.

Contributors

  • Henrik Schack

Support

Issues resolved in last two months:

0 out of 1

View support forum

  • About
  • News
  • Hosting
  • Donate
  • Swag
  • Documentation
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
  • Visit our Instagram account
  • Visit our LinkedIn account
Code is Poetry