APIs & Integrations

miljkovicmisa
Top Contributor | Platinum Partner
Top Contributor | Platinum Partner

Integrating a two factor authentication cycle by sending a 2FA PIN code over SMS

Hello community, this isn't a straightforward question as it is more of an examination of possible implementations. The case is as follows, we need an implementation regarding two factor authentication using a pin code sent over SMS.
The user would ideally enter the details (phone number included) inside a form, then receive a pin code on mobile (we have that covered by a third party tool), enter the pin code inside a new field (not clear if its gonna be a new page / popup...) and thus conclude the authorization.

So far the sending of the pin through sms/the authentication based on that pin is completly covered by the third party. The caveat is how should all this be handled inside HubSpot. I'd like to hear if anyone has done something similar, would they use custom code inside a workflow / serverless functions / third party integrations or anything else.
Do you have a specific tool or process in mind, generally how would you handle such a request using hubspot's tools.

[The idea that I have is: Create a custom form on a landing page, upon submission of the form the contact enrolls a workflow that handles the sending of the sms by an api call to the third party, receives the secret string as response (that is needed for authorization) and adds that string as a contact property, in the meantime a popup shows on the landing page that awaits a pin code,  upon submission a new workflow is triggerred that searches the contact by its mobile number, retrieves the secret string property value and does the api call to autheticate the pin, if successful it changes that contacts property to authorized.]
This flow has some downsides as it doesn't communicate with the frontend to show a success message, would very much love to hear other suggestions, concerns, or any thought really.

1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

Integrating a two factor authentication cycle by sending a 2FA PIN code over SMS

To make sure the info is kept together, posting the slack thread as well 😀

0 Upvotes