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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trytond_authentication_sms-5.4.0.tar.gz
.
File metadata
- Download URL: trytond_authentication_sms-5.4.0.tar.gz
- Upload date:
- Size: 23.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.23.3 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57036abc7d474de179012dc823e9ffb1ca41497b4dfa61ebd16e0e072ebaf57d |
|
MD5 | 59d2cf924654b18948488fb3eeb3313d |
|
BLAKE2b-256 | 648702c3460aff36941cfec82af62817bbd2e827970954376f7080e9a3449152 |
Provenance
File details
Details for the file trytond_authentication_sms-5.4.0-py3-none-any.whl
.
File metadata
- Download URL: trytond_authentication_sms-5.4.0-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.23.3 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fa991c68178f7ad0e558fcbe4ce2d309cc9b03c6155569ed62cd4d665cde522 |
|
MD5 | e8bd28c9afc1bb647b61cb5cb7492036 |
|
BLAKE2b-256 | 02706d49990cacc91de3425fc515c6c624204cf36c2b2b6cef087d74c1322efb |