Download the PHP package tvdijen/simplesamlphp-module-cmdotcom without Composer

On this page you can find all versions of the php package tvdijen/simplesamlphp-module-cmdotcom. 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 simplesamlphp-module-cmdotcom

SMS as Second Factor module

Build Status Coverage Status Scrutinizer Code Quality Type Coverage Psalm Level

[!CAUTION] This module has been abandoned since June 13, 2024. It should still work, and I don't mind reviving it, but my personal use-case for this module no longer exists. Feel free to hit me up if you need this module and together we can work things out.

This module is implemented as an Authentication Processing Filter. That means it can be configured in the global config.php file or the SP remote or IdP hosted metadata.

Prerequisites

To be able to use this module, you have to register at CM.com to get an API-key for their RESTful API.

How to setup the module

First you need to enable the module; in config.php, search for the module.enable key and add cmdotcom with value true:

In order to process the passcode SMS in this module, you need set the mandatory API-key to interact with the CM.com RESTful API in the productToken setting.

You can optionally set the mobilePhoneAttribute to the name of the attribute that contains the user's mobile phone number. The default attribute if this setting is left out is mobile.

If the attribute defined above is not available for a user, an error message will be shown, and the user will not be allowed through the filter. Please make sure that you select an attribute that is available to all users.

By default the SMS will originate from Example, but this can be changed using the optional originator setting. The maximum length is 16 digits for a phonenumber or 11 alphanumerical characters [a-zA-Z0-9]. Example: 'CMTelecom'.

Another default is that the OTP received by SMS can be entered within a period of three minutes. This can be adjusted by configuring the optional validFor setting to the number of seconds the code should be valid.

Finally, it is possible for the OTP code to be automatically pushed to a mobile app. To do this, set the optional allowPush to true and set the appKey to match your mobile app.

This module is using libphonenumber-for-php to parse recipient phonenumbers and normalize them. If you experience undeliverable SMS, you can try to set your defaultRegion to the CLDR two-letter region-code format for your region.

Add the filter to your Identity Provider hosted metadata authproc filters list, specifying the attribute you've selected.

This setup uses no persistent storage at all. This means that the user will always be asked to enter a passcode each time she logs in.


All versions of simplesamlphp-module-cmdotcom with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
giggsey/libphonenumber-for-php-lite Version ^8.13.4
guzzlehttp/guzzle Version ^7.5.0
simplesamlphp/assert Version ^0.8.0
simplesamlphp/composer-module-installer Version ^1.3.2
simplesamlphp/simplesamlphp Version ^2.0.0-rc2
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 tvdijen/simplesamlphp-module-cmdotcom contains the following files

Loading the files please wait ....