Get SSO Private Key
Go to your Suggix Dashboard → Settings → Developer to locate your SSO private key.

Generate the SSO token on your server
Generate a JWT on your server using your user data, following the example below.
Generate the token on your server
Redirect to the Suggix portal with the SSO token
Redirect the user to the Suggix portal and include the
ssoToken as a query parameter.
Suggix will automatically verify the token and sign the user in.Example:https://feedback.yourwebsite.com/?ssoToken=eyJhbGciOiJIUzI1NiJ9…Configure Login Redirect URL and Home Redirect URL
Configure the Login Redirect URL in the SSO Settings page to redirect users to your website for authentication when they are not logged in.Configure the Home Redirect URL to allow users to quickly return to your website from the Suggix feedback portal.
After configuring the Login Redirect URL, the login button in the Suggix portal will redirect users to the specified Login Redirect URL and include a return URL parameter.
Once the user has successfully signed in on your website, redirect them back to the Suggix feedback portal with the generated ssoToken.Example:
https://yourwebsite.com/login?redirect=https://feedback.yourwebsite.comRequired token fields
Your JWT payload must include:| Field | Type | Description |
|---|---|---|
email | string | User email address |
name | string | User display name |
| Field | Type | Description |
|---|---|---|
id | string | Stable user ID from your application |
photo_url | string | Public avatar URL |
Redirect flow
- A user clicks a feedback link in your product.
- Your server verifies the user is signed in.
- Your server generates an SSO token with the Suggix private key.
- Your app redirects the user to the Suggix portal with
ssoToken. - Suggix verifies the token and signs the user in.