Error: Session Expired

Modified on: Mon, 7 Jun, 2021 at 7:43 PM

This article covers 

How do I setup Chargebee’s sign in via SSO


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.

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:

  1. Enable "Allow access to customer portal via API" under Chargebee Dashboard,

Configure Chargebee
Checkout & Self-serve portal
> Checkout
Click Publish to use the portal sessions API

  1. Provide a link in your website/application to allow your authenticated customers to access the portal (portal_link).

  2. 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

  3. Forward the user to the access URL present in the "Portal Session" resource returned by the above API call.

    1. Note: 

      1. The access URL should be accessed by the customer within one hour from the time it was created. 

      2. Once accessed, 

        1. The session is valid until the user logs out from the portal UI or logout API is called from your application.

        2. 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

I would like to re-direct my customer to the Edit Subscription (Customer Portal) page directly from my website. What API call can I use?

How to prevent multiple Users or Subscriptions with the same email address?

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.