This article covers
How do I set up Chargebee’s sign-in via SSO?
Summary
If you already authenticate your customers on your native application and would like to redirect them to their Chargebee portal to manage their account, you can use the Single-Sign-On option. Integrating your customer portal via Chargebee’s API lets you skip Chargebee’s self-serve portal authentication and direct your customers to access their accounts.
Note:
1.SSO applies only when you have your own authentication for your website.
2.This portal link(redirect) is valid for one time use. Click here to read more.
Follow the below steps for supporting portal access via SSO:
Enable "Customers can access the self-serve portal via Single Sign-On API" under Chargebee Dashboard,
> Configure Chargebee
> Settings
> Checkout & Self-serve portal
> Checkout
> Click Publish to use the portal sessions API
Provide a link to your website/application to allow your authenticated customers to access the portal (portal_link).
Handle the link request in your server code and create a portal session for the customer by calling Chargebee's "Create a portal session" API
-
Forward the user to the access URL present in the "Portal Session" resource returned by the above API call.
-
Note:
The access URL should be accessed by the customer within one hour from the time it was created.
-
Once accessed,
The session is valid until the user logs out from the portal UI or logout API is called from your application.
Create a new portal session, whenever you need to provide access to the portal.
-
Note: Chargebee supports Single Sign-On via SAML.
Related articles and Documentation
How do I prevent multiple Users or Subscriptions with the same email address?