Download the PHP package fromholdio/silverstripe-mfa-guard without Composer

On this page you can find all versions of the php package fromholdio/silverstripe-mfa-guard. 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 silverstripe-mfa-guard

Silverstripe MFA Guard

Mandatory multi-factor authentication for every Silverstripe CMS member, enforced on every request, with a forgotten-password reset that cannot be used to skip the second factor and recovery tooling for when members are locked out.

It builds on the official silverstripe/mfa and silverstripe/totp-authenticator modules. Their sign-in screens, authenticator-app method and recovery codes are used unchanged; this module closes the ways a session can become logged in without passing them.

What it does

Requirements

The module has been tested on PHP 8.5 with Silverstripe CMS 6.2. The lower minimums come from a review of the upstream source and have not been run; see docs/compatibility.md.

Installation

Then set the environment variables below. Read Side effects before installing on a site with front-end member logins.

Environment variables

Variable Required Purpose
SS_MFA_SECRET_KEY Yes The MFA module's encryption key for stored authenticator secrets. Generate once per environment, for example with openssl rand -hex 32, keep it with that environment's secrets and never rotate it casually.
FIO_MFA_ISSUER_NAME Recommended The name authenticator apps show for the site. Must not contain a colon. Unset or empty keeps the TOTP module's default, the SiteConfig title. Set it before anyone enrols, because it is written into the QR code.
BYPASS_MFA Local development only The MFA module's switch: present with any value, it turns MFA and this module's guard off. Never set it on a shared or production environment.

Side effects

Recovery

Members recover with their recovery codes, or an administrator sends an account reset email from Security. When nobody can sign in, run the break-glass task on the server:

See docs/recovery.md for every recovery path, including a lost SS_MFA_SECRET_KEY.

Running the tests

The module's suite runs from the root of a Silverstripe CMS project that has the module installed:

Composer does not load a dependency's autoload-dev, so the module's tests/bootstrap.php registers its test namespace itself. The database user needs permission to create the temporary ss_tmpdb_* databases. See docs/testing.md, which also explains how a project's own functional tests can reach the CMS with the guard in place.

Documentation

Licence

BSD 3-Clause; see THIRD-PARTY-NOTICES.md.


All versions of silverstripe-mfa-guard with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
silverstripe/framework Version ^6.0.4
silverstripe/mfa Version ^6.0
silverstripe/totp-authenticator Version ^6.0
silverstripe/session-manager Version ^3.0
silverstripe/siteconfig Version ^6.0
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 fromholdio/silverstripe-mfa-guard contains the following files

Loading the files please wait ...