If your customers already have an account with you, for example in your app or your customer identity platform, they can sign in to the SubscriptionFlow customer portal with that same account. You connect your identity provider (IdP) with SAML 2.0 or OpenID Connect (OIDC), and the portal sign-in page sends customers to your IdP instead of asking for a SubscriptionFlow password.
This is for your customers. To let your own team sign in to SubscriptionFlow with SSO, see Single Sign-On (SSO).
Before you start
- Only one IdP can be connected for the customer portal.
- Once SSO is on, all customers must sign in through your IdP. The portal password form is no longer shown.
- SAML 2.0: supported IdPs are Google Workspace, OneLogin, Azure AD, Okta, AWS and Auth0. Each customer must already exist in SubscriptionFlow with the same email as Portal Email as in your IdP.
- OIDC: works with any provider that gives you a provider domain (issuer URL), a client ID and a client secret. If no customer with that email exists yet, SubscriptionFlow creates one and turns on their portal access.
Connect your identity provider
- Open Settings, click Customer Portal, then Single Sign-On in the Portal Manager menu. Stay on the Customer Portal tab.
- Click Enable Single Sign-On.
- Under Choose Protocol, select SAML 2.0 or OpenID Connect (OIDC) and fill in the fields from your IdP:
- SAML 2.0: Choose your IDP, Login URL (the IdP's single sign-on URL), SAML Certificate (the IdP's X.509 certificate) and, optionally, Remote Logout URL.
- OIDC: Connection / Provider name, Provider domain, Client ID and Client Secret.
- Click Save. SubscriptionFlow checks the details before saving.
- After saving, the tab shows your connection and the Service Provider Endpoints to enter in your IdP: for SAML the Entity ID, ACS URL and SLS URL; for OIDC the Callback URL. Click the copy icon next to each and add them to the app you created in your IdP.
- Open your portal sign-in page in a private window to test: you should be sent to your IdP and, after signing in, land on the portal dashboard.
To change the connection, click Edit. To go back to email and password sign-in, click Delete.
Sign customers in from your own app (In-App portal)
If you embed the In-App portal in your website or app, you can sign customers in to it automatically after they log in to your app, with the Portal Session script on the InApp Portal tab:
const portalFlow = new window.PortalFlowInApp();
portalFlow.createPortalSession("<SubscriptionFlow Client ID>", "<customer portal email or customer ID>");
- On the InApp Portal tab, add your app's address (for example
https://mycompany.com/) under Allowed URLs and click + Whitelist URL. Sessions are only created from these addresses. - Run the script in your app after the customer has signed in, with your OAuth Client ID (Settings › API & Integrations › OAuth Clients) and the customer's portal email or customer ID.
For the full embed setup, see Embedded In-App Widgets.
Related
- Single Sign-On (SSO) (for your team)
- Enable Customer Self Service
- Embedded In-App Widgets
Comments
0 comments
Please sign in to leave a comment.