Forum Discussion
OTP SMS with API (SMS Gateway)
- Jul 15, 2019
Hi cd,
I'm using a hardware device SMSEagle as my SMS gateway with APM.
As Neils rightly said above, there is no need to use an iRule.
I'm using these VPE agents in this particular sequence:
OTP Generate
HTTP Auth (to send the OTP as SMS)
Logon Page (to collect the OTP)
OTP Verify
Please refer to attached screenshots.
I hope it helps.
It seems the documentation you are referring to is a little outdated. You don't need to use the iRule to create an OTP. Just use the 'OTP Generate' agent in the VPE.
The 'Variable Assign HTTP' is being used to match the AAA HTTP sms_auth object. You can see the fields 'Form Parameter for User Name' being set to 'to' and the 'Form Parameter for Password' being set to 'text'. These fields are being read from 'session.logon.last.username' and 'session.logon.last.password'.
Which SMS gateway are you using? If using MessageBird you could also use this code:
Note that there are also other code snippets available for other SMS gateway providers.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com