Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implementing MFA in Okta

Tags:

okta

How do I programatically implement MFA in Okta ? My requirements are something like this:

  1. For some users, I want to use Okta Verify and some additional security questions.
  2. For some other users, I want to use Google Authentication along with some additional security questions.
  3. For some other users, I just want to use SMS authentication.

What are the API's/SDK's that I have to use to implement these use cases ?

like image 526
Srini Subramanian Avatar asked Jun 05 '26 16:06

Srini Subramanian


1 Answers

You can implement this using the Authn APIs, or alternatively, use the Sign-In Widget, which implements these API's for you.

Note, if you are implementing it yourself: the authn flow is driven by policies, so you wouldn't do something like "for this user, prompt for Okta Verify". Rather, you would configure the MFA scenarios via the Okta admin pages (probably by assigning these users to groups with different Sign-On Policies). When authenticating, you will receive a response from the server for enrolling/challenging via the various factors.

like image 82
remanc Avatar answered Jun 10 '26 19:06

remanc