telekomSMSTokenProvider

The telekomSMSTokenProvider randomly generates a 6-digit token after the user entered her correct password.

The token is then sent to the user via text message. The user's attribute sms is used as the recipient phone number. If this attribute has not been provided by the user data provider, the login attempt fails.

The text message is sent via Deutsche Telekom's developer garden REST API. To use this API, a registered user account with sufficient balance is necessary and the Send SMS API has to be enabled for this account. Membrane API Gateway must be registered as an "application" on the developer garden website, and the "Global SMS API" must be enabled both for the user account as well as the registered application. Once completed, the scope, clientId and clientSecret settings must be copied from the website into Membrane's proxies.xml configuration file. Membrane uses these three parameters to identify itself when connecting to the Telekom API Gateway.

When using a non-standard environment (see https://www.developergarden.com/apis/documentation/bundle/telekom-api-rest/html/sendsms.html#environmental_infos for more information), the parameters senderName and senderAddress may be used to set the SMS sender address and name.

The token is prepended by prefixText to generate the text message's text.

If normalizeTelephoneNumber is set, the user's sms attribute will be normalized according to the following rules before using it:


Explanation:

A token provider using Deutsche Telekom's REST interface developer garden to send a randomly generated numeric token to the user via text message.

Can be used in:

login and bean

Syntax

<telekomSMSTokenProvider
   scope="string"
   clientId="string"
   clientSecret="string"
   [prefixText="string"]
   [normalizeTelephoneNumber="boolean"]
   [environment="string"]
   [senderName="string"]
   [senderAddress="string"] />

Sample

<telekomSMSTokenProvider
   scope="uFah4h"
   clientId="aed1quieZo"
   clientSecret="iep3sop9paejoo2yio6ha1weihoo6ouveita4uiTh8sae7LieFulaifi0aes3Noolai1matei8uRahfazia7riefuZegh0Nei7em"
   prefixText="Token: "
   normalizeTelephoneNumber="true" />