Configuring Authentication with a Random Passcode Sent by SMS, E-Mail, or Another Channel
For users who cannot install an authenticator application on their mobile devices, you can configure the passcode to be sent by SMS.
The SMS configuration works out-of-the-box with an SAP Messaging Service, which you need a separate contract for. If you would like to use a
third-party Short Message Service (SMS) Gateway, you have to write a policy script that implements the API of the third-party SMS
Gateway. For an example script, see SAP Note 2225027
.
You can also write a policy script so that the passcode is sent by e-mail. For more information about the out-of-band methods, see Related Information..
Prerequisites
The application is configured to use two-factor authentication, which is the default setting. For more information, see Configuring TOTPLoginModule and RBALoginModule.
Procedure
Example
As an administrator at Company A, Donna Moore would like to configure the system to send passcodes to partner users who cannot install an authenticator application and cannot set up their mobile devices. To do this, she proceeds as follows:-
She logs on to SAP NetWeaver Administrator and goes to Java System Properties: Overview, chooses the System VM Parameters tab and configures the following properties for the selected SMS template:
Name
Custom Calculated Value
http.nonProxyHosts
localhost|*.companya.corp
http.proxyHost
proxy
http.proxyPort
8080
https.nonProxyHosts
localhost|*.companya.corp
https.proxyHost
proxy
https.proxyPort
8080
-
Donna goes to the Destinations: Destinations section and creates a new HTTP destination with name SMS_GATEWAY as she sets the destination URL, username, and password.
-
She sets a phone number for user Michael Adams with logon ID m_adams under by choosing the Modify button and entering the number in the mobile field.
-
She assigns this user to the Partners group under the Assigned Groups tab.
-
Donna goes to Authentication and Single Sign-On: Authentication and sets the following TOTPLoginModule option for her policy configuration (application):
Name
Value
tfa.first.factor.login.module
BasicPasswordLoginModule
-
She logs on to the One-Time Password Administration UI, selects the Send passcode by SMS checkbox, and enters values in the following fields:
Field Label
Field Value
Destination Name:
SMS_GATEWAY
Send SMS to Members of Group:
Partners
UME Attribute for Mobile Number:
mobile
Message Template:
Please log on with the following passcode: [passcode].
After completing the configuration, Donna informs Michael that he can log on with passcodes sent by SMS. When Michael accesses the logon page, he first enters his username and password. After successful authentication with the password, a new page appears prompting Michael to enter the passcode he has just been sent by SMS. Michael retrieves the passcode from his phone and logs on to the application.

