Table of Contents
Introduction
Login Flows are used to customize the Login Screen and You can use a login flow to control the business processes that your users follow when they login to Salesforce.
With the help of login flow, we can increase the security of the salesforce by asking for some additional information or asking some security questions.
Use Cases
Here are some of the use cases related to salesforce login flow.
- Enhance or customize the login experience by adding a logo or login message.
- Collect and update user data, such as an email address, phone number, or mailing address.
- Interact with users, and ask them to perform an action. For instance, you can ask them to complete a survey or accept terms of service.
- Connect to a Salesforce Customer Identity service or geofencing service, and collect or verify user information.
- Enforce strong authentication, like implementing a multi-factor authentication (MFA) method using hardware, biometric, or another authentication technique.
- Run a confirmation process. For example, have a user define a secret question, and validate the answer during login.
- Create more granular policies like setting up a policy that sends a notification every time a user logs in during non-standard working hours.
Login Flows Inputs
When we are creating login flows which are Screen Flows, we can create some pre-defined input variables which will provide the various information about the user and logged-in session.
Here is the list of all the variables which we can create and are the standard inputs.
- LoginFlow_LoginType (type Text)
- LoginFlow_IpAddress (type Text)
- LoginFlow_UserAgent (type Text)
- LoginFlow_Platform (type Text)
- LoginFlow_Application (type Text)
- LoginFlow_Community (type Text)
- LoginFlow_SessionLevel (type Text)
- LoginFlow_UserId (type Text)
- LoginFlow_FinishLocation (type Text)
- LoginFlow_ForceLogout (type Boolean)
If you want the user to force logout once the certain condition is met then set the value of LoginFlow_ForceLogout to true
How login flow executes
Login flow always executes once the user has successfully logged in.