Docs
validate, user, ChargeBee, login, credentials
38989385
2021-08-10T11:52:41Z
2025-02-12T08:23:31Z
502
0
1
251638
How to validate the login of a user for the website using Chargebee's login credentials?
This is indeed possible. Chargebee allows you to integrate your custom self-service portal by building user authentication on top of Chargebee. If you would want to allow access to parts of your website only to subscribers (like a paywall), you can integrate Chargebee's authentication without having to handle it from your end.
When customers are led to your custom self-service portal from your website, redirect them to the Login URL
The following parameters should be passed along with the Login URL:
The domain name used in the Return/Cancel URL should be added as a 'Allow-list Domain' in Chargebee. Add just the domain name in Chargebee and not the entire URL: E.g. yourdomain.com.
Upon successful authentication, a portal session is created for the user and Chargebee redirects the user to the return_url along with the following parameters:
With the auth_session_id & auth_session_token parameters, using Activate a Portal Session API, validate the session details and create a session for that user in your website.