88
Views
2
Comments
One-time password (OTP) login in ODC
Application Type
Reactive

Hi,

We are looking to implement a one-time-password (OTP) login into our ODC application.
The way this would work is as follows:

  1. User enters email address
  2. We look up the user with that email address and the associated mobile phone number.
  3. We generate a one-time-password (OTP) code like 421785 and send that in an SMS
  4. User enters the OTP
  5. System validates the OTP and logs in the user

The problem is with step 5, logging in the user after validation of the OTP.  In O11 this could be done using the Login action from System.

In ODC, this action doesn't seem to exist anymore.

How can we log in a user in ODC in, for example, an OTP flow? The only supported login options seem to be username/password or external IDP providers like Azure Entra ID.

Any ideas?

Kind regards,

Steven

2023-01-19 12-23-07
Abhinav Shilwant

Hi @Steven Decock,

For logging in users in ODC after OTP validation, since the Login action from the System module is no longer available, you’ll need to explore alternative approaches to achieve the login functionality.

Here are a few ideas:

1) Custom Authentication Flow:

You can create a custom server-side logic to manage user authentication after OTP validation. This may involve manually managing user sessions after the OTP is validated.

2) External IDPs for Authentication:

Since ODC supports authentication via external Identity Providers (IDPs) like Azure AD, you could explore setting up an OTP-based login flow using an external IDP. Azure AD, for example, supports MFA/OTP and might be configurable for your use case.

3) Service Action for Custom Login:

Consider creating a REST or SOAP service that integrates with an external authentication service that supports OTP. This service could then return an authentication token or session information that allows the user to be logged in.

While ODC doesn’t seem to have a built-in Login action like O11, these workarounds might help achieve similar functionality.

Hope this helps!


Kind Regards,

Abhinav

2023-11-05 14-47-05
Thuan Pham Dinh

hi @Steven Decock I got the same issue, any solution ?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.