Download the PHP package cherubimro/roundcube-fido2 without Composer

On this page you can find all versions of the php package cherubimro/roundcube-fido2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package roundcube-fido2

Roundcube FIDO2/WebAuthn Two-Factor Authentication

A Roundcube Webmail plugin that adds FIDO2/WebAuthn second-factor authentication using hardware security keys.

Users log in with their password first, then verify with a security key tap as a second factor. Supports YubiKey, Feitian BioPass, SoloKeys, Google Titan, and any FIDO2-compliant authenticator.

Requirements

Installation

Via Composer (recommended)

From your Roundcube directory:

If the package isn't on Packagist yet, add the repository first in your Roundcube composer.json:

Manual installation

Copy the plugin into your Roundcube plugins/ directory as webauthn:

Copy the example configuration and edit it:

At minimum, set the relying party ID to match your domain:

Enable the plugin in Roundcube's config/config.inc.php:

The database table is created automatically on first use.

Configuration

All settings go in plugins/webauthn/config.inc.php:

Setting Default Description
webauthn_2fa_policy optional off / optional / required
webauthn_rp_name Roundcube Display name shown to users during ceremonies
webauthn_rp_id auto-detect Domain name (e.g. mail.example.com). Must match the domain users access Roundcube on
webauthn_rp_origins [] Allowed origins array (e.g. ['https://mail.example.com']). Empty = auto-detect
webauthn_timeout 60000 Ceremony timeout in milliseconds
webauthn_user_verification preferred preferred / required / discouraged
webauthn_attestation none none / indirect / direct
webauthn_attachment '' '' (any) / platform / cross-platform

Policy modes

Usage

Registering a key

  1. Log in to Roundcube.
  2. Go to Settings > Security Keys.
  3. Click Register New Key.
  4. Enter a name (e.g. "My YubiKey 5") and tap/touch your security key when prompted.
  5. If policy is optional, toggle Enable two-factor authentication.

Logging in with 2FA

  1. Enter your username and password as usual.
  2. A verification page appears: "Please insert and tap your security key."
  3. Tap your key. On success, you are redirected to your inbox.

Managing keys

Database

The plugin creates a webauthn_credentials table automatically. SQL schemas for manual creation are in the SQL/ directory:

Security

Supported databases

MySQL/MariaDB, PostgreSQL, and SQLite are all supported with matching schemas.

Library

Uses lbuchs/webauthn v2.2 -- a zero-dependency PHP WebAuthn server library.

License

GPL-3.0-or-later (same as Roundcube).


All versions of roundcube-fido2 with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
lbuchs/webauthn Version ^2.2
roundcube/plugin-installer Version >=0.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cherubimro/roundcube-fido2 contains the following files

Loading the files please wait ...