Extension Name: WebAuthn Passkey & Biometric LoginAuthor: [hidden]
Special thanks to: [hidden]
Extension Description:
WebAuthn passkey and biometric quick login for phpBB
[hidden] [hidden]
[hidden]
- A malformed request to the public passkey login endpoint (a JSON string or number, a response that is not an object, a field of the wrong type) now gets a normal error message instead of a server error; every nested field is checked before it is used and `\Throwable` is caught.
- Passkey names can contain emoji and other four byte characters. They are stored as numeric character references (the column is `VCHAR_UNI`) and shown as the real characters in the UCP and in the delete confirmation. Registering or renaming a passkey with an emoji no longer ends in a database error.
- A one-time challenge is consumed atomically (a conditional delete that must affect one row): of several simultaneous requests with the same challenge only one can succeed.
- The install no longer widens `credential_id` to 512 characters (a primary key over the MySQL/MariaDB 767 byte limit); the column stays 255 and holds the SHA-256 of the credential ID, the raw ID is stored in `credential_id_b64`. `sign_count` is an unsigned 32-bit column.
- On the board index a guest's page view no longer writes a challenge; the challenge is requested when the pointer, keyboard focus or a touch reaches the passkey button. On the login page it is still fetched at once.
- An answer of the server (for example "Your account is not activated") is shown at once instead of after a second click.
- The member's name is sent to the authenticator as the real name (`Tom & Jerry`, not `Tom & Jerry`).
- Queries name their columns and the primary key lookups stop after one row.
- Removed the unused service arguments (`dbal.conn`, `core.root_path`, `core.php_ext`, `language`) and six unused CSS rules. The CBOR/DER helper code and the JavaScript use one statement per line.
- `ext.php` checks the PHP and phpBB version (and the required extensions) before the extension is enabled, with a clear message.
Screenshots:
[hidden]
Passkey button above the password form on the login page
[hidden]
Passkey button in the login form on the board index
[hidden]
Your passkeys in the user control panel
[hidden]
Renaming a passkey
[hidden]
Confirmation before a passkey is deleted
[hidden]
Passkey settings in the ACP
[hidden]
Message after saving the settings with a lower passkey limit
[hidden]
Passkey limit reached: the add form is replaced by a notice
Extension Download:
[hidden]
Installation:
Special thanks to: [hidden]
Extension Description:
WebAuthn passkey and biometric quick login for phpBB
[hidden] [hidden]
[hidden]
- A malformed request to the public passkey login endpoint (a JSON string or number, a response that is not an object, a field of the wrong type) now gets a normal error message instead of a server error; every nested field is checked before it is used and `\Throwable` is caught.
- Passkey names can contain emoji and other four byte characters. They are stored as numeric character references (the column is `VCHAR_UNI`) and shown as the real characters in the UCP and in the delete confirmation. Registering or renaming a passkey with an emoji no longer ends in a database error.
- A one-time challenge is consumed atomically (a conditional delete that must affect one row): of several simultaneous requests with the same challenge only one can succeed.
- The install no longer widens `credential_id` to 512 characters (a primary key over the MySQL/MariaDB 767 byte limit); the column stays 255 and holds the SHA-256 of the credential ID, the raw ID is stored in `credential_id_b64`. `sign_count` is an unsigned 32-bit column.
- On the board index a guest's page view no longer writes a challenge; the challenge is requested when the pointer, keyboard focus or a touch reaches the passkey button. On the login page it is still fetched at once.
- An answer of the server (for example "Your account is not activated") is shown at once instead of after a second click.
- The member's name is sent to the authenticator as the real name (`Tom & Jerry`, not `Tom & Jerry`).
- Queries name their columns and the primary key lookups stop after one row.
- Removed the unused service arguments (`dbal.conn`, `core.root_path`, `core.php_ext`, `language`) and six unused CSS rules. The CBOR/DER helper code and the JavaScript use one statement per line.
- `ext.php` checks the PHP and phpBB version (and the required extensions) before the extension is enabled, with a clear message.
Screenshots:
[hidden]
Passkey button above the password form on the login page
[hidden]
Passkey button in the login form on the board index
[hidden]
Your passkeys in the user control panel
[hidden]
Renaming a passkey
[hidden]
Confirmation before a passkey is deleted
[hidden]
Passkey settings in the ACP
[hidden]
Message after saving the settings with a lower passkey limit
[hidden]
Passkey limit reached: the add form is replaced by a notice
Extension Download:
[hidden]
Installation:
- Download the latest release.
- Unzip the downloaded release, and change the name of the folder to `webauthn`.
- In the `ext` directory of your phpBB board, create a new directory named `dmzx` (if it does not already exist).
- Copy the `webauthn` folder to `/ext/dmzx/` if done correctly, you'll have the main extension class at
(your forum root)/ext/dmzx/webauthn/composer.json - Navigate in the ACP to `Customise -> Manage extensions`
- Look for `WebAuthn Passkey & Biometric Login` under the Disabled Extensions list, and click its `Enable` link.
