Provision Users
Induction to data and authentication all inside one application
Automatically authenticate your SaaS users to your Rantir instance
This feature is available in our paid editions. Contact us here, and we'll be delighted to assist you!
β
Overview
In Rantir, there are Projects and Users. Each project is provisioned with their corresponding workspace, project, or team in your SaaS. The users are then mapped to the respective users in Rantir.
To achieve this, the backend will generate a signed token that contains all the necessary information to automatically create a user and project. If the user or project already exists, it will skip the creation and log in the user directly.
Step 1: Obtain Signing Key
You can generate a signing key by going to Platform Settings -> Signing Keys -> Generate Signing Key.
This will generate a public and private key pair. The public key will be used by Rantir to verify the signature of the JWT tokens you send. The private key will be used by you to sign the JWT tokens.
Please store your private key in a safe place, as it will not be stored in Rantir.
Step 2: Generate a JWT
The signing key will be used to generate JWT tokens for the currently logged-in user on your website, which will then be sent to the Rantir Iframe as a query parameter to authenticate the user and exchange the token for a longer lived token.
To generate these tokens, you will need to add code in your backend to generate the token using the RS256 algorithm, so the JWT header would look like this:
To obtain the SIGNING_KEY_ID
, refer to the signing key table and locate the value in the first column.
ββ
β
The signed tokens must include these claims in the payload:
β
β

You can use any JWT library to generate the token. Here is an example using the jsonwebtoken library in Node.js:
β
Friendly Tip #1: You can also use this tool to generate a quick example.
Friendly Tip #2: Make sure the expiry time is very short, as itβs a temporary token and will be exchanged for a longer-lived token.
β
Node.js
β
Once you have generated the token, please check the embedding docs to know how to embed the token in the iframe.
β
Documentation Overview
Explore our collection of intuitive integration pieces for effortless implementation.
Data & Authentication
Easily test and examine endpoint behaviors by making requests with Rantir Cloud.
Licensing Explorer
Understand our GPL and Fair Use license combination for using templates & Rantir Cloud
Integrations & Workflows
Streamline your decision-making process with an automated workflow and create robust AI applications, code-free.
Embeddings
Create user autho, form and data embeds within the CMS architecture that works with any stack to build application on top of Figma Sites, Webflow, ect.
.png)
TIR Customization
Effortlessly tailor the visual aesthetics & functionality of your SaaS application templates and learn how to chat with your template to make changes.
.png)