LeadSquared Developer Centre

ON THIS PAGE

Portal Auto Login


This article explains how to automatically log leads into your application portals, without requiring them to enter their credentials.

When using LeadSquared Portals, end users (e.g., students, loan applicants, etc.) may transition back and forth between the portal and different tools/applications/systems (e.g., student information system, marketing emails, exam/test portal, etc.).
For example, after filling in a form, a student may be directed to another system to take a test, and then receive an email with a link directing back to the LeadSquared portal. On clicking the email link, the student is required to log back into the LeadSquared portal and continue the application process.

With the auto-login Portal APIs, you can reduce friction and drop-offs through seamless login – eliminating the need for the end user to log back into the LeadSquared Portal. The direct login link skips the portal login, directly authenticates, and redirects the user to the desired target page on the portal (e.g., application page).

To facilitate seamless login –

  1. Generate an auto-login auth key for your LeadSquared account.
    Use your LeadSquared access key and secret key to generate an auth key for your LeadSquared account. The response will return an alphanumeric auth key.
  2. Generate an auto-login auth key for the lead (end-user).
    Use the account level authorization key (generated in the previous step), your Portal Id, and the Lead Id, to generate an auth key for a specific lead.
  3. Append the lead level auth key to the portal target page URL and share the link.
    Pass the lead level auth key as a query parameter to the portal page URL. Share the link with the lead (e.g., via email). Use a URL shortener if required.
    When the lead clicks the link he’ll be seamlessly logged in to the portal.

Related APIs –

On this page

© 2022 by MarketXpander Services Pvt Ltd. All Rights Reserved.