Passkey Authentication for Backend
WebAuthn/Passkey authentication for October CMS backend
Passkey Authentication for Backend
WebAuthn/Passkey authentication for October CMS backend
Let your administrators sign in to the October CMS backend with passkeys — Touch ID, Face ID, Windows Hello, Android screen lock or a hardware security key (YubiKey and other FIDO2 keys) — instead of typing a password.
The plugin adds a Sign in with Passkey button to the standard backend login page and a Passkeys tab to each administrator's account. It implements the W3C WebAuthn standard, so the private key never leaves the user's device and there is nothing on the server that can be phished or reused.
Features
- Passwordless backend login — one click on the login page, no username needed (discoverable credentials)
- Any authenticator — built-in platform authenticators, USB / NFC / Bluetooth security keys and phone-as-a-key (hybrid)
- Self-service management — administrators add, name and remove their own passkeys in My Account → Passkeys
- Admin revocation — users with the
admins.managepermission can revoke (but never add) passkeys of administrators they are allowed to manage, e.g. after a lost device - One release for October CMS 3.1+ and 4.x — the same version runs on both
- 15 languages — English, Arabic, Chinese, Dutch, French, German, Japanese, Korean, Latvian, Polish, Portuguese, Russian, Spanish, Turkish, Ukrainian
Security first
- Adding a passkey requires the current account password; passkeys can only be added to your own account and never while impersonating
- Passkey sign-in honours the same ban / suspension (throttle) rules as the password sign-in
- Single-use challenges with a 120-second lifetime, separate for sign-in and registration
- Rate limiting per IP and per user, generic error messages (no user or credential enumeration)
- Signature counter validation to detect cloned authenticators, unique credential IDs
- Every registration and revocation is written to the application log
Requirements
- October CMS 3.1+ or 4.x, PHP 8.0.2+
- HTTPS (required by WebAuthn;
localhostworks for development) - A modern browser — all current versions of Chrome, Safari, Firefox and Edge support passkeys
Free and open source (MIT). Source code and issue tracker: github.com/iMateo/oc-passkey-plugin.
Installation via Command Line
php artisan plugin:install IHORCHYSHKALA.Passkey
Installation
Install from the backend (Settings → Updates & Plugins → Install Plugins, search for "Passkey Authentication") or from the command line:
php artisan plugin:install IHORCHYSHKALA.Passkey
or with Composer:
composer require ihorchyshkala/passkey-plugin php artisan october:migrate
Requirements: October CMS 3.1+ or 4.x, PHP 8.0.2+, and the backend must be served over HTTPS (WebAuthn does not work over plain HTTP, except on localhost).
Adding a passkey
- Open My Account (avatar menu → My Account) and go to the Passkeys tab.
- Click Add Passkey.
- Give it a recognisable name (e.g. "MacBook Pro", "YubiKey") and enter your current password.
- Click Create Passkey and follow your browser / operating system prompt (fingerprint, face, PIN or security key).
- The passkey appears in the list.
Passkeys can only be added to your own account. Register more than one (for example, laptop and phone) so you are not locked out if a device is lost — your password keeps working as well.
Signing in
On the backend login page click Sign in with Passkey and confirm with your device. No username is needed: the passkey tells the server who you are.
The usual backend rules still apply: banned or suspended accounts cannot sign in, and the "remember me" cookie follows the backend.force_remember setting.
Removing a passkey
Click Remove next to a passkey in My Account → Passkeys.
Administrators with the admins.manage permission also see the Passkeys tab when editing another administrator and can revoke that user's passkeys (for example after a lost device). The core rank rules apply: non-superusers cannot touch superusers or higher-ranked administrators. Adding a passkey for someone else is not possible.
Configuration
By default the WebAuthn Relying Party ID is the host name of your backend URL. Pin it when the backend is reachable under several host names or sits behind a proxy:
# .env PASSKEY_RP_ID=example.com
or create config/ihorchyshkala/passkey/config.php:
<?php return ['rp_id' => 'example.com'];
The RP ID must equal the backend host or one of its parent domains. Passkeys are bound to it, so changing the RP ID later invalidates all registered passkeys.
Behind a proxy or load balancer
Login rate limits are counted per client IP. Make sure Laravel sees the real visitor IP (configure the TrustProxies middleware, or nginx real_ip_header / set_real_ip_from), otherwise all visitors share the proxy's IP and one limit.
Troubleshooting
- The button does nothing / "not supported" — the page is not served over HTTPS, or the browser does not support WebAuthn.
- "Passkey authentication failed" — the passkey was created for a different domain (check
PASSKEY_RP_ID), was removed, or the account is suspended. Details are written to the application log (storage/logs). - "Too many attempts" — wait a minute; limits are 10 failed sign-ins and 30 sign-in requests per minute per IP, and 5 wrong passwords per minute when adding a passkey.
Support
Bug reports and questions: GitHub Issues.
-
This plugin has not been reviewed yet.
-
| 2.0.1 |
Security: own-account passkey registration with password re-authentication, unique credential_id, throttle/ban on passkey login, generic error messages Nov 25, 2026 |
|---|---|
| 2.0.0 |
Single release line for October CMS 3.1+ and 4.x Nov 25, 2026 |
| 1.0.2 |
Security: own-account passkey registration with password re-authentication; unique credential_id; login honours throttle/ban Nov 25, 2026 |
| 1.0.1 |
Security: add index on credential_id for login performance Nov 25, 2026 |
| 1.0.0 |
Initial version of Passkey plugin Nov 25, 2026 |
Upgrading to 2.0
Version 2.0 is a single release line for October CMS 3.1+ and 4.x. If you installed an earlier 1.x version (from Git or Composer), upgrade normally (php artisan october:update or composer update) — the database migrations are idempotent and run in order (1.0.2 → 2.0.0 → 2.0.1). Existing passkeys keep working; no re-registration is needed.
Behaviour changes
- Adding a passkey now requires the current account password.
- Passkeys can only be added to your own account. Administrators with
admins.managecan still view and revoke other administrators' passkeys (respecting superuser / rank rules), but can no longer add one for someone else. - Banned or suspended administrators can no longer sign in with a passkey — the same throttle rules as the password login now apply.
- "Remember me" after a passkey login now follows
backend.force_rememberinstead of always being set. - The "account deactivated" check was removed: October does not use activation for backend users, and administrators created through the backend form were locked out of passkey login.
- Login errors shown in the browser are now generic; the details go to the application log.
Database
credential_idgets a unique index (2.0.1). Accidental duplicates, if any, are removed automatically, keeping the oldest record.- On MySQL / MariaDB the column is converted to
ascii_binso credential IDs are compared case-sensitively and the index fits older MySQL / MariaDB key length limits.
New option
PASSKEY_RP_ID (or config/ihorchyshkala/passkey/config.php, key rp_id) pins the WebAuthn Relying Party ID. Leave it unset to keep the previous behaviour (backend host name). Do not change it on a site that already has passkeys — they are bound to the RP ID.