Skip to main content

IO Workflow Examples Use Cases

This documentation offers a comprehensive example of the IO Workflow, showcasing its real-world applications and key features. It is a practical guide to help you understand how the IO Workflow functions in various scenarios, enabling effective implementation. By following this example, you will gain insights into its capabilities.

Sign Up Flow

This custom-crafted workflow integrates essential identity management processes, streamlining every aspect of the sign-up experience into a single cohesive flow.

Nodes Utilized:

  • Webpage
  • Child Workflow User Exists Check
  • Create User
  • Send Email

Workflow Steps:

  1. User Registration:
    • The user provides the required registration information through the webpage.
  2. Validation:
    • User Exists Check:
      • If the user already exists:
        • Display a success message on the registration page indicating successful completion.
      • If the user is new:
        • Proceed to create a user profile.
  3. Account Creation:
    • Create User:
      • Save the new user details in the system.
  4. Email Notification:
    • Send Email:
      • Dispatch a verification email to the user’s registered email address.
  5. Confirmation:
    • Display a success message on the registration page to confirm the process.

Email Login

This workflow streamlines the login processes by intelligently handling session tokens, user authentication, and redirection to appropriate pages.

Nodes Used:

  • Get Session Data
  • Auth
  • Webpage
  • Set Session Data

Workflow Steps:

1. Check for Session Token:

  • Action: Verify if an lr-session token exists in cookies.
    • If Present: Attempt to log in to the user.
    • If Absent: Redirect to the login webpage.

2. Authenticate User:

  • Action: Validate user credentials.
    • Success: Proceed to the next step.
    • Failure: Redirect to the login page.
    • User Not Registered: Redirect to the signup page.

3. Set Session Data:

  • Action: On successful login/registration, store session data for the user.

4. Redirect on Success:

  • Action: Direct the user to the appropriate page upon workflow completion.

Forgot Password

This workflow simplifies the password recovery process using OTP-based verification, ensuring users can securely reset their passwords without technical obstacles.

Nodes Used:

  • Webpage
  • Send Email
  • Verify Email/SMS OTP
  • Update User

Workflow Steps:

1. User Enters Email:

  • Action: Submit your email address to trigger an OTP email.

2. Show OTP Input Webpage:

  • Action: Display the OTP input page after successful OTP dispatch.

3. User Enters OTP:

  • Action: Submit the OTP for verification.

4. Verify OTP:

  • Action: Verify the submitted OTP.
    • Valid OTP: Show the password input page.

5. User Enters New Password:

  • Action: Submit a new password.

6. Update User Password:

  • Action: Update the user’s password in the system.

Verify Email

This workflow provides a straightforward mechanism for email verification via OTP, ensuring that user email addresses are validated securely and effectively.

Nodes Used:

  • Send Email
  • Webpage
  • Verify Email/SMS OTP

Workflow Steps:

1. User Enters Email:

  • Action: Submit email to receive OTP.

2. OTP Verification:

  • Action: Enter OTP for verification.
    • Valid OTP: Email is verified successfully.

Password Expired

This workflow addresses scenarios where users must update expired passwords, maintaining security and usability through step-by-step guidance.

Nodes Used:

  • Webpage
  • Auth
  • Update User

Workflow Steps:

1. User Signs In:

  • Action: Enter your email and password to log in.

2. Check Expired Password:

  • Action: Verify if the user’s password is expired.
    • Expired: Prompt user to update the password.

3. User Updates Password:

  • Action: Submit a new password to complete the process.

Lock and Unlock Account Using Email Verification

This workflow manages account security by locking user accounts after failed login attempts and unlocking them via secure email-based OTP verification.

Nodes Used:

  • Webpage
  • Auth
  • Data Query
  • Suspend Account
  • Unlock Account
  • Send Email
  • Verify Email/SMS OTP

Workflow Steps:

1. User Sign-In Attempt:

  • Action: Monitor failed login attempts.

2. Account Locking:

  • Action: Suspend the account if login attempts exceed the threshold.

3. Unlocking Process:

  • Action: Upon user request:
    • Send OTP to the user’s email.
    • Verify OTP to unlock the account.

MFA OTP Login

This workflow integrates multi-factor authentication (MFA) for enhanced security. It guides users through OTP verification and MFA setup when necessary.

Nodes Used:

  • Webpage
  • Auth
  • Configure MFA
  • MFA Configured State
  • Send SMS
  • Verify Email/SMS OTP
  • Update MFA Phone

Workflow Steps:

1. User Signs In:

  • Action: Check if MFA is configured.
    • Not Configured: Prompt for MFA setup.

2. OTP Verification:

  • Action: Send OTP to the user and verify.

3. MFA Setup Completion:

  • Action: Redirect upon successful setup.