Skip to main content

Account Recovery

Thor has forgotten his password on a Sunday morning, just before a flight-booking deadline. He selects Forgot password? on the Wayfinder sign-in screen and receives a recovery email a few seconds later. He opens the link, sets a new password, and is back in his Wayfinder account before the airline's price-hold expires.

Prerequisites

Complete Setup before starting this walkthrough.

Background

Account Recovery covers the requirements story behind this use case.

Walkthrough Setup

  1. Configure an email notification sender so the recovery email can be delivered. Have these values ready:

    FieldValue
    SMTP hostYour mail provider
    SMTP credentialsUsername and password / API key
    Sender nameWhat appears as the "From" name
    Email templateThe recovery email body
  2. Add a recovery flow. Pick the tab that matches the path you used in Setup.

The bundle already includes a recovery flow attached to WAYFINDER. No further action is needed.

Pick Your Pattern

Redirect-based

In the redirect-based pattern, the consumer app sends the user to ThunderID for the entire recovery experience. The Wayfinder web frontend is configured exactly this way: the Sign in button triggers an OIDC redirect to ThunderID. From there, the user picks Forgot password?, completes the recovery flow, and returns to Wayfinder to sign in with the new password.

Try the Use Case

  1. Open http://localhost:5173 and select Sign in. The browser navigates to ThunderID.
  2. On the ThunderID sign-in page, select Forgot password?.
  3. Enter Thor's email and submit. ThunderID runs the recovery flow and sends Thor a recovery email.
  4. Open the email in Thor's inbox and open the link inside.
  5. ThunderID renders a Set new password screen. Enter a new password and submit.
  6. ThunderID shows a confirmation and returns Thor to Wayfinder. Select Sign in again and sign in with the new password.
App-native step-by-step

Coming soon. See the App-native pattern for what to expect.

App-native managed

Coming soon. See the App-native pattern for what to expect.

ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.Privacy PolicyCookie Policy