Set Up SSO for an impact.com Microsite via JWT
Your Advocate program's microsite typically requires your customer advocates to sign up with a username and password before they can access their share links and reward details. However, as an advanced alternative, you can instead authenticate users by generating a JSON Web Token (JWT) server-side and passing it to the microsite via a URL parameter.
Using this method, participants will not have login credentials for the microsite. Instead, they gain access by logging into your existing customer portal, which then redirects them to the microsite using the JWT to identify them and display their personalized content.
Before you begin
You should only use this method if all of the following apply:
You want to simulate a single sign-on (SSO) experience by automatically logging participants into your program's microsite.
You can generate JWTs server-side.
You can't or don't want to install the Universal Tracking Tag (UTT) onto your site.
Step 2: Generate the JWT
The JWT structure follows standard Advocate requirements for user authentication. If you've integrated Advocate before, you're likely already generating similar tokens for UTT.
You must generate the JWT securely on your server or any trusted backend system—never in the browser.
Learn how to generate a JWT and the payload requirements.
Step 3: Append the JWT to the microsite URL
Once the user is logged into your platform, redirect them to the microsite with the JWT included in the URL query string.
You can either open the microsite in a new browser tab, or embed the microsite in your app using an iframe. If you decide to embed the microsite, make sure you handle cross-origin resource sharing (CORS) and browser restrictions appropriately.
Notes
If you use this authentication method, users won't have login credentials for the microsite.
JWT-based access must be tightly controlled. Don't expose or manipulate it in client-side JavaScript.
This is a non-standard approach — test it thoroughly in your staging environment before rolling out your program.
If you need support, include your microsite URL, implementation details, and a sample JWT payload in your support request.
Last updated
Was this helpful?


