To provide a seamless experience to your members, it's best to authenticate them automatically into your product using the JWT SSO.
To do so, you should follow these steps:
- Follow the JWT SSO instructions to generate a JWT token.
- Generate an embed URL for your community, space, or post using the Embedding Tribe instructions.
- Set the
redirect_uriof the JWT SSO endpoint to the relative version of your embed URL.
Let's say you want to seamlessly embed a space into your community. After generating the JWT token, you can follow the steps for embedding a space. The URL will look like this:
You can convert the above URL to a relative URL by removing your community domain/subdomain from the beginning of the URL:
The JWT SSO URL looks like this:
After replacing the
redirect_uri value, the final URL will look like this:
Please note that you should apply
encodeURIComponent function (or similfor encode URI method) on the
Here is a sample Node.js Express app snippet for generating the IFrame url: