Instructions for

On this page

User password recovery

Identity Engine

Note: In proxy model architectures, where a server-side app using the embedded SDK is used as a proxy between client apps and Okta servers, a request context for the client apps is required. The expectation is that security enforcement is based on the client request context's IP address and user agent. However, since these values are currently derived from the server app rather than the client, this enforcement isn't available. As a result, network zones or behaviors that drive their conditions based on these request context values (geolocation, IP Address, or user agent) won't work until a solution to the issue is found.

This use case describes how to integrate a password recovery flow into your app using an Okta SDK. The flow includes an email factor step that the user needs to verify before updating their password.


Learning outcomes

  • Understand how to set up password recovery with only an email factor.
  • Use the Okta SDK in your app to implement a password recovery flow.

What you need

Sample code


Configuration updates

The password recovery use case requires the password and email factors.

Displays Password and Email factor indicators

Before you build a password recovery flow with an email factor, ensure that your org is configured for a multifactor use case. To do that, complete the steps in Set up your Okta org for a multifactor use case.

Set email as the only factor enabled for password recovery

After you configure your Okta org for the multifactor use case, enable email as the only factor for password recovery.

  1. In the Admin Console, go to Security > Authenticators.
  2. From the Setup tab, select Edit from the Actions dropdown menu on the Password authenticator row.
  3. On the Password page, scroll down to the Add Rule section of the Default Policy and click the edit pencil icon for the Default Rule.
  4. In the Edit Rule dialog, ensure that you configure the following values for AND Users can initiate recovery with:
    • Phone (SMS / Voice call): Clear
    • Email: Selected
  5. Click Update Rule if you change any values.

Summary of steps

Integration steps