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

Project details


Download files

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

Source Distribution

trytond_authentication_sms-5.2.0.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trytond_authentication_sms-5.2.0-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

File details

Details for the file trytond_authentication_sms-5.2.0.tar.gz.

File metadata

  • Download URL: trytond_authentication_sms-5.2.0.tar.gz
  • Upload date:
  • Size: 24.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.8.0 tqdm/4.23.3 CPython/2.7.15

File hashes

Hashes for trytond_authentication_sms-5.2.0.tar.gz
Algorithm Hash digest
SHA256 5f30690718bea41b0c3999b096987673d5f87a5552fec264938eddce28fe6ba6
MD5 ba17601a9457c913e570ebd06ed9ab8e
BLAKE2b-256 29ade225f9f6625ec394ed56924eca68240491c4c00cd5f9aeb67c21bced471c

See more details on using hashes here.

File details

Details for the file trytond_authentication_sms-5.2.0-py3-none-any.whl.

File metadata

  • Download URL: trytond_authentication_sms-5.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 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.8.0 tqdm/4.23.3 CPython/2.7.15

File hashes

Hashes for trytond_authentication_sms-5.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b995ffe46afb4b2fb0960640114748fca7b78bf8ad20c635b1ce42ec29820504
MD5 7f3e372536ef0c181bef1dbc2569ee9c
BLAKE2b-256 208f63afa81b87828e9851db29e363d99fbf812d569b9b7a3d8f6d9935e072cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page