Files
tryton/modules/authentication_sms
Cédric Krier 1050494552 Use binary version of psycopg for tests
(grafted from 844c3d391796ffe89afce54d12f6bf5f4aa8ef4e)

--HG--
branch : 7.0
2026-07-17 22:16:19 +02:00
..
2024-02-18 18:35:54 +01:00
2023-10-28 14:15:23 +02:00
2023-01-11 14:42:13 +01:00
…
2023-10-30 18:17:32 +01:00
2023-05-01 13:19:11 +02:00
…
…
…
2023-10-22 19:40:55 +02:00
2023-10-30 18:49:03 +01:00

Authentication SMS Module
#########################

The `SMS <https://en.wikipedia.org/wiki/Short_Message_Service>`_ authentication
module allows users to authenticate via SMS.  It adds a new authentication
method ``sms``, which can be used in the list of ``authentications`` in the
``session`` section of the configuration file.

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

This method requires that the user has the correct *Mobile* phone number
defined otherwise it will not be possible for them to authenticate.

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