Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
LightningLoginEligibility Enum
Usage
If you use the Discovery page type, users can verify themselves with Lightning Login. Lightning Login lets internal users log in with Salesforce Authenticator instead of a password. Certain conditions must be met for Lightning Login to succeed.
Call Auth.SessionManagement.getLightningLoginEligibility before or after a login attempt to get the eligibility status. You can call after a login attempt to determine why the login attempt failed.
Enum Values
The following are the values of the Auth.LightningLoginEligibility enum.
| Value | Description |
|---|---|
| ELIGIBLE | All eligibility conditions are met. The admin has enabled Salesforce Authenticator and Lightning Login, assigned the user Lightning Login user permission, and selected Allow only for users with the Lightning Login User permission from the Session Settings Setup page. The user has set up Salesforce Authenticator and enrolled in Lightning Login. |
| ORG_AUTHENTICATOR_NOT_ENABLED | The admin hasn’t enabled Salesforce Authenticator. |
| ORG_PREF_NOT_ENABLED | The admin hasn’t enabled Lightning Login. The Admin must select Allow Lightning Login from the Session Settings Setup page. |
| USER_AUTHENTICATOR_NOT_CONNECTED | The user hasn’t set up Salesforce Authenticator. |
| USER_NOT_ALLOWED | The admin hasn’t granted the user AllowLightningLogin user permission. Allowing Lightning Login to certain users requires the OnlyLLPermUserAllowed org preference. Admins must select Allow only for users with the Lightning Login User permission from the Session Settings Setup page. |
| USER_NOT_ENROLLED | The user hasn’t enrolled in Lightning Login. |
| USER_PERM_NOT_ENABLED | The admin hasn’t granted the user the Lightning Login Eligible user permission. |