Download the PHP package xddesigners/otp-authenticator without Composer
On this page you can find all versions of the php package xddesigners/otp-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xddesigners/otp-authenticator
More information about xddesigners/otp-authenticator
Files in xddesigners/otp-authenticator
Package otp-authenticator
Short Description A OTP authenticator for use with silverstripe/mfa
License BSD-3-Clause
Informations about the package otp-authenticator
SilverStripe OPT Authenticator
Log in to SilverStripe with an One Time Password
You can configure a provider to send trough SMS or use Email.
This module provides a authenticator that plugs in to the silverstripe/mfa module.
The default providers that ship with this module:
Requirements
- PHP ^7.4
- SilverStripe ^4.1
- silverstripe/mfa: ^4.0
- twilio/sdk: "^6.35"
- giggsey/libphonenumber-for-php: "^8.12"
Installation
Install with Composer:
The email provider is configured by default and requires no further setup.
If you want to change providers, to SMSTools for example, you can add the following to your .yml config:
For Twillio and SMSTools you'll need to define authentication tokens in your environment:
pass exisiting send to address
This can be an existing phone number, or if you use the email provider an existing email address.
On your member add the method otpSendTo
that returns an OTPSendTo
object.
The additional data can be used by the configured provider for validation and is also stored on the RegisteredMethod
.
The SMS providers use an extra region
property to validate the phone number for example.
create a custom send provider
If you want to make use of a different service to pass the code you can create a custom provider.
You'll need to extend the abstract SendProvider
class and implement the required methods.
All versions of otp-authenticator with dependencies
silverstripe/mfa Version ^4.0
twilio/sdk Version ^6.35
spomky-labs/otphp Version ^10
giggsey/libphonenumber-for-php Version ^8.12