Bypass a Sign-up Form for Certain Users

Overview

This article clarifies how to configure an application's authentication flow to bypass a sign-up form for specific users.

Applies To
  • Forms
  • Action
Solution

Configure the authentication pipeline to skip the sign-up form.

  1. Place the following code into the exports.onContinuePostLogin handler:

const EXCLUDED_APP_CLIENT_ID = event.secrets.EXCLUDEDCLIENTID;
  if (event.client.client_id === EXCLUDEDCLIENTID) {
    console.log(`Skipping form for user from excluded application: ${event.client.name}`);
    return; 
  }
  1. After the code is applied, the user bypasses the normal login flow form and proceeds directly to the next stage of the authentication pipeline. The system issues tokens and redirects the user back to the excluded application.

 

Recommended content

No recommended content found...