Skip to main content

Tryton module to authenticate users via SMS

Project description

The SMS authentication module allows to authenticate users via SMS. There are two authentication methods sms and password_sms which can be used in the authentications list of the session section in the configuration.

The sms method just send a code via SMS to the user. Then the user needs to transcribe the code into the login dialog.

The password_sms method send a code only after the user entered a valid password. This provides a two-factor authentication method.

Both methods require that the user has a Mobile phone number defined otherwise he can not be authenticated with those methods.

Configuration

The configuration of the module is set in the authentication_sms section.

function

The fully qualified name of the method to send SMS. It must take three arguments: text, to and from. This method is required to send SMS.

from

The number from which the SMS are sent.

length

The length of the generated code. Default: 6

ttl

The time to live for the generated codes in seconds. Default: 300

name

The name used in the SMS text. Default: Tryton

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for trytond-authentication-sms, version 5.4.0
Filename, size File type Python version Upload date Hashes
Filename, size trytond_authentication_sms-5.4.0-py3-none-any.whl (21.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size trytond_authentication_sms-5.4.0.tar.gz (23.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page