Update Login UI With 2FA Methods
This section describes the authentication logic that must be implemented for 2FA users.
When a user has authenticated their static password against the existing system, the pre-authenticate method must be called for that user. This method checks the 2FA type for the user (SMS, Mobile App, etc) and sends an SMS OTP if required. It returns a result that contains the expected credential type, which must be used to guide the user during the logon process. Details of this type may be found in the Developer Guide.
Figure 4: Single factor authentication logic (before integration)
An example of authentication logic after the ESET Secure Authentication On-Prem SDK has been integrated is depicted in Figure 5.
Note that the logic for this will vary from system to system depending on the requirements.
Figure 5: Two factor authentication logic with ESA SDK