I'm currently implementing two-factor authentication (2FA) in AwareIM for a back-office user. The step to send a verification code via SMS is already working using Bulkgate. Here's the process I'm using:
CREATE SMSRequest WITH SMSRequest.Request='{
`application_id`: `' + SystemSettings.SMSApplicationID + '`,
`application_token`: `' + SystemSettings.SMSKey + '`,
`number`: `' + BackofficeUser.TelNrMobiel + '`,
`text`: `Your verification code is: ' + BackofficeUser.Code2FA + '`,
`sender_id`: `gText`,
`sender_id_value`: `PolderSoft`,
`unicode`: true,
`country`: `NL`
}'
To generate a number : GENERATE_PWD(6,6,0,6,0)
Question:
What are the recommended steps to properly integrate this into AwareIM’s login process?
Specifically, I want to:
Let the user first log in with username and password
Then show an additional screen to enter the verification code
Only grant access after the correct code is entered
Are there any best practices or examples of how to implement this properly within AwareIM?
Should I use a temporary object, a custom login form, a session variable, or something else?
Any advice or example implementations would be greatly appreciated!
Thanks in advance,
Jannes