Enable seamless access to Supahub’s public hub by integrating Single Sign-On (SSO) with your app’s existing authentication credentials.
redirectTo
parameter appended to the URL: https://yourdomain.com/sso/supahub?redirectTo=https://workspace-name.supahub.com/changelog
redirectTo
parameter passed along: https://workspace-name.supahub.com/api/auth/sso?jwt=payload&redirectTo=https://workspace-name.supahub.com/changelog
Set up a dedicated SSO page
https://yourdomain.com/sso/supahub
. Alternatively, you can use your existing authentication page (login/signup). This page will receive and process authentication requests from Supahub.Go to your Supahub Dashboard and navigate to the “Settings” section. Look for the SSO settings and enter the URL of the SSO page you created in the “SSO Redirect URL” field.Once saved the “Login with YourWorkspaceName” button on your public hub’s navbar will be shown automatically.Authenticate Users
Install JWT packages
Generate the JWT token
Redirect the user back to Supahub
jwt
and redirectTo
URL.
https://workspace-name.supahub.com/api/auth/sso?jwt=payload&redirectTo=https://workspace-name.supahub.com/changelog
https://feedback.yourdomain.com/api/auth/sso?jwt=payload&redirectTo=https://feedback.yourdomain.com/changelog
Private Workspace Configuration
Authenticate Users